Instance Property


A tag for identifying the cell.


@property NSInteger tag;


Tags allow you to identify particular cells. Tag values are not used internally by AppKit. You typically set tag values in Interface Builder and use them at runtime in your application. When you set the tag of a control with a single cell in Interface Builder, it sets the tags of both the control and the cell to the same value as a convenience.

The default value of this property is -1. Setting the value of this property raises with NSInternalInconsistencyException. Subclasses are expected to override this property if they support tags. The NSActionCell class implements this property and stores the integer you specify.