Class

NSActionCell

An active area inside a control.

Declaration

@interface NSActionCell : NSCell

Overview

An NSActionCell does three things: it displays text or an icon; it provides the target object and action method used by its NSControl object; and it handles mouse (cursor) tracking by properly highlighting its area and sending action messages to its target based on cursor movement.

Topics

Configuring an NSActionCell Object

- setFloatingPointFormat:left:right:

Sets the receiver’s floating-point format.

Obtaining and Setting Cell Values

- floatValue

Returns the receiver’s value as a float after validating any editing of cell content.

- intValue

Returns the receiver’s value as an int after validating any editing of cell content.

- integerValue

Returns the receiver’s value as a 64-bit compatible integer after validating any editing of cell content.

- stringValue

Returns the receiver’s value as a string object as converted by the cell’s formatter, if one exists.

- setObjectValue:

Discards any editing of the receiver’s text and sets its object value to object.

Managing the Cell’s View

- controlView

Returns the view in which the receiver was last drawn.

- setControlView:

Sets the receiver's control view, the view in which it is drawn.

Assigning the Target and Action

action

Returns the receiver’s action-message selector.

target

Returns the receiver’s target object.

Assigning a Tag

tag

Returns the receiver’s tag.

Relationships

Inherits From

See Also

View Fundamentals

NSView

The infrastructure for drawing, printing, and handling events in an app.

NSControl

A definition of the fundamental behavior for controls, which are specialized views that notify your app of relevant events by using the target-action design pattern.

NSCell

A mechanism for displaying text or images in a view object without the overhead of a full NSView subclass.