Enumeration

NSCellAttribute

Constants for specifying how a button behaves when pressed and how it displays its state.

Declaration

typedef enum NSCellAttribute : NSUInteger {
    ...
} NSCellAttribute;

Overview

These constants are used by the NSButton and NSButtonCell classes.

Topics

Constants

NSCellAllowsMixedState

Lets the cell’s state be NSMixedState, as well as NSOffState and NSOnState.

NSChangeBackgroundCell

If the cell’s state is NSMixedState or NSOnState, changes the cell’s background color from gray to white.

NSCellChangesContents

If the cell’s state is NSMixedState or NSOnState, displays the cell’s alternate image.

NSChangeGrayCell

If the cell’s state is NSMixedState or NSOnState, displays the cell’s image as darkened.

NSCellDisabled

Does not let the user manipulate the cell.

NSCellEditable

Lets the user edit the cell’s contents.

NSCellHasImageHorizontal

Controls the position of the cell’s image: places the image on the right of any text in the cell.

NSCellHasImageOnLeftOrBottom

Controls the position of the cell’s image: places the image on the left of or below any text in the cell.

NSCellHasOverlappingImage

Controls the position of the cell’s image: places the image over any text in the cell.

NSCellHighlighted

Draws the cell with a highlighted appearance.

NSCellIsBordered

Draws a border around the cell.

NSCellIsInsetButton

Insets the cell’s contents from the border.

NSCellLightsByBackground

If the cell is pushed in, changes the cell’s background color from gray to white.

NSCellLightsByContents

If the cell is pushed in, displays the cell’s alternate image.

NSCellLightsByGray

If the cell is pushed in, displays the cell’s image as darkened.

NSPushInCell

Determines whether the cell’s image and text appear to be shifted down and to the right.

NSCellState

The cell’s state.