Platforms to show: All Mac Windows Linux Cross-Platform
NSCellMBS constants
Constants
Constant | Value | Description |
---|---|---|
NSAnyType | 0 |
One of the constants specify how a cell formats numeric data.
Any value is allowed. Deprecated in Mac OS X v10.4 and later. |
NSBlueControlTint | 1 |
One of the constants specify a cell's tint.
Aqua control tint Available in Mac OS X v10.3 and later. |
NSCellAllowsMixedState | 16 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Lets the cell's state be NSMixedState, as well as NSOffState and NSOnState. |
NSCellChangesContents | 14 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell's state is NSMixedState or NSOnState, displays the cell's alternate image. |
NSCellDisabled | 0 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Does not let the user manipulate the cell. |
NSCellEditable | 3 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Lets the user edit the cell's contents. |
NSCellHasImageHorizontal | 12 | One of the constants specify how a button behaves when pressed and how it displays its state. Controls the position of the cell's image: places the image on the right of any text in the cell. more |
NSCellHasImageOnLeftOrBottom | 13 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Controls the position of the cell's image: places the image on the left of or below any text in the cell. See NSCellHasImageHorizontal for more details. |
NSCellHasOverlappingImage | 11 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Controls the position of the cell's image: places the image over any text in the cell. See NSCellHasImageHorizontal for more details. |
NSCellHighlighted | 5 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Draws the cell with a highlighted appearance. (Deprecated. Use Highlighted instead.) |
NSCellHitContentArea | 1 |
One of the constants are used by hitTestForEvent to determine the effect of an event.
A content area in the cell. Available in Mac OS X v10.5 and later. |
NSCellHitEditableTextArea | 2 |
One of the constants are used by hitTestForEvent to determine the effect of an event.
An editable text area of the cell. Available in Mac OS X v10.5 and later. |
NSCellHitNone | 0 |
One of the constants are used by hitTestForEvent to determine the effect of an event.
An empty area, or did not hit in the cell. Available in Mac OS X v10.5 and later. |
NSCellHitTrackableArea | 4 |
One of the constants are used by hitTestForEvent to determine the effect of an event.
A trackable area in the cell. Available in Mac OS X v10.5 and later. |
NSCellIsBordered | 10 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Draws a border around the cell. |
NSCellIsInsetButton | 15 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Insets the cell's contents from the border. By default, the cell's contents are inset by 2 points. This constant is ignored if the cell is unbordered. |
NSCellLightsByBackground | 9 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell is pushed in, changes the cell's background color from gray to white. |
NSCellLightsByContents | 6 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell is pushed in, displays the cell's alternate image. |
NSCellLightsByGray | 7 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell is pushed in, displays the cell's image as darkened. |
NSCellState | 1 |
One of the constants specify how a button behaves when pressed and how it displays its state.
The cell's state can be NSMixedState, NSOffState, or NSOnState. |
NSChangeBackgroundCell | 8 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell's state is NSMixedState or NSOnState, changes the cell's background color from gray to white. |
NSChangeBackgroundCellMask | 8 |
One of the constants specify what happens when a button is pressed or is displaying its alternate state.
Same as NSChangeGrayCellMask, but only background pixels are changed. |
NSChangeGrayCell | 4 |
One of the constants specify how a button behaves when pressed and how it displays its state.
If the cell's state is NSMixedState or NSOnState, displays the cell's image as darkened. |
NSChangeGrayCellMask | 4 |
One of the constants specify what happens when a button is pressed or is displaying its alternate state.
The button cell swaps the "control color" (the controlColor method of NSColor) and white pixels on its background and icon. |
NSClearControlTint | 7 |
One of the constants specify a cell's tint.
Clear control tint Available in Mac OS X v10.0 and later. |
NSContentsCellMask | 1 |
One of the constants specify what happens when a button is pressed or is displaying its alternate state.
The button cell displays its alternate icon and/or title. |
NSDefaultControlTint | 0 |
One of the constants specify a cell's tint.
The current default tint setting. Available in Mac OS X v10.0 and later. |
NSDoubleType | 6 |
One of the constants specify how a cell formats numeric data.
Must be between –FLT_MAX and FLT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSFloatType | 3 |
One of the constants specify how a cell formats numeric data.
Must be between –FLT_MAX and FLT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSGraphiteControlTint | 6 |
One of the constants specify a cell's tint.
Graphite control tint Available in Mac OS X v10.3 and later. |
NSImageAbove | 5 |
One of the constants specify the position of a button's image relative to its title.
The image is above the title. |
NSImageBelow | 4 |
One of the constants specify the position of a button's image relative to its title.
The image is below the title. |
NSImageCellType | 2 |
One of the constants specify how a cell represents its data (as text or as an image).
Cell displays images. |
NSImageLeft | 2 |
One of the constants specify the position of a button's image relative to its title.
The image is to the left of the title. |
NSImageOnly | 1 |
One of the constants specify the position of a button's image relative to its title.
The cell displays an image, but not a title. |
NSImageOverlaps | 6 |
One of the constants specify the position of a button's image relative to its title.
The image overlaps the title. |
NSImageRight | 3 |
One of the constants specify the position of a button's image relative to its title.
The image is to the right of the title. |
NSIntType | 1 |
One of the constants specify how a cell formats numeric data.
Must be between INT_MIN and INT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSMiniControlSize | 2 |
These constants specify a cell's size.
The control has a smaller size than NSSmallControlSize. |
NSMixedState | -1 |
One of the constants specify a cell's state and are used mostly for buttons.
The corresponding feature is in effect somewhere. |
NSNoCellMask | 0 |
One of the constants specify what happens when a button is pressed or is displaying its alternate state.
The button cell doesn't change. |
NSNoImage | 0 |
One of the constants specify the position of a button's image relative to its title.
The cell doesn't display an image. |
NSNullCellType | 0 |
One of the constants specify how a cell represents its data (as text or as an image).
Cell displays nothing. |
NSOffState | 0 |
One of the constants specify a cell's state and are used mostly for buttons.
The corresponding feature is in effect nowhere. |
NSOnState | 1 |
One of the constants specify a cell's state and are used mostly for buttons.
The corresponding feature is in effect everywhere. |
NSPositiveDoubleType | 7 |
One of the constants specify how a cell formats numeric data.
Must be between FLT_MIN and FLT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSPositiveFloatType | 4 |
One of the constants specify how a cell formats numeric data.
Must be between FLT_MIN and FLT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSPositiveIntType | 2 |
One of the constants specify how a cell formats numeric data.
Must be between 1 and INT_MAX. Deprecated in Mac OS X v10.4 and later. |
NSPushInCell | 2 |
One of the constants specify how a button behaves when pressed and how it displays its state.
Determines whether the cell's image and text appear to be shifted down and to the right. |
NSPushInCellMask | 2 |
One of the constants specify what happens when a button is pressed or is displaying its alternate state.
The button cell "pushes in" if it has a border. |
NSRegularControlSize | 0 |
These constants specify a cell's size.
The control is sized as regular. |
NSSmallControlSize | 1 | These constants specify a cell's size. The control has a smaller size. more |
NSTextCellType | 1 |
One of the constants specify how a cell represents its data (as text or as an image).
Cell displays text. |
Background Styles
Constant | Value | Description |
---|---|---|
NSBackgroundStyleDark | 1 |
The background is a dark color. Light content contrasts well with this background. Available in Mac OS X v10.5 and later. |
NSBackgroundStyleLight | 0 |
The background is a light color. Dark content contrasts well with this background. Available in Mac OS X v10.5 and later. |
NSBackgroundStyleLowered | 3 |
The background is intended to appear lower than the content drawn on it. Content might need to be embossed. Available in Mac OS X v10.5 and later. |
NSBackgroundStyleRaised | 2 |
The background is intended to appear higher than the content drawn on it. Content might need to be inset. Available in Mac OS X v10.5 and later. Example |
Scaling Modes
Constant | Value | Description |
---|---|---|
NSImageScaleAxesIndependently | 1 |
Scale each dimension to exactly fit destination. This setting does not preserve the aspect ratio of the image. Available in Mac OS X v10.5 and later. |
NSImageScaleNone | 2 |
Do not scale the image. Available in Mac OS X v10.5 and later. |
NSImageScaleProportionallyDown | 0 |
If it is too large for the destination, scale the image down while preserving the aspect ratio. Available in Mac OS X v10.5 and later. |
NSImageScaleProportionallyUpOrDown | 3 |
Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio. Available in Mac OS X v10.5 and later. |