Deprecated NSActionCell Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Available in OS X v10.0 through OS X v10.5

controlView

Returns the view in which the receiver was last drawn. (Available in OS X v10.0 through OS X v10.5.)

- (NSView *)controlView
Return Value

The returned view is normally an NSControl object. The method returns nil if the receiver has no control view (usually because it hasn’t yet been placed in the view hierarchy).

Availability
  • Available in OS X v10.0 through OS X v10.5.
Declared In
NSActionCell.h

floatValue

Returns the receiver’s value as a float after validating any editing of cell content. (Available in OS X v10.0 through OS X v10.5.)

- (float)floatValue
Discussion

If the receiver is not a text-type cell or the cell value is not scannable, the method returns 0.

Availability
  • Available in OS X v10.0 through OS X v10.5.
See Also
Declared In
NSActionCell.h

intValue

Returns the receiver’s value as an int after validating any editing of cell content. (Available in OS X v10.0 through OS X v10.5.)

- (int)intValue
Discussion

If the receiver is not a text-type cell or the cell value is not scannable, the method returns 0.

Availability
  • Available in OS X v10.0 through OS X v10.5.
See Also
Declared In
NSActionCell.h

setFloatingPointFormat:left:right:

Sets the receiver’s floating-point format. (Available in OS X v10.0 through OS X v10.5. Deprecated; use NSFormatter objects instead.)

- (void)setFloatingPointFormat:(BOOL)autoRange left:(NSUInteger)leftDigits right:(NSUInteger)rightDigits
Parameters
autoRange

NO if you want the receiver to places digits to the right and left of the decimal point as specified (in leftDigits and rightDigits; YES if you want it to place the digits flexibly.

leftDigits

The maximum number of digits to the left of the decimal point. The receiver might interpret this value flexibly if autoRange is YES.

rightDigits

The maximum number of digits to the right of the decimal point. The receiver might interpret this value flexibly if autoRange is YES.

Discussion

The implementation of this method is based on the NSCell method setFloatingPointFormat:left:right:. See the description of that method for details.

The NSActionCell implementation of the method supplements the NSCell implementation by marking the receiver as needing redisplay after discarding any editing changes that were being made to cell text.

Availability
  • Available in OS X v10.0 through OS X v10.5.
Declared In
NSActionCell.h

setObjectValue:

Discards any editing of the receiver’s text and sets its object value to object. (Available in OS X v10.0 through OS X v10.5.)

- (void)setObjectValue:(id < NSCopying >)object
Parameters
object

The object value to assign to the receiver.

Discussion

If the object value is afterward different from what it was before the method was invoked, the method marks the receiver as needing redisplay.

Availability
  • Available in OS X v10.0 through OS X v10.5.
Declared In
NSActionCell.h

stringValue

Returns the receiver’s value as a string object as converted by the cell’s formatter, if one exists. (Available in OS X v10.0 through OS X v10.5.)

- (NSString *)stringValue
Discussion

If no formatter exists and the value is an NSString, returns the value as a plain, attributed, or localized formatted string. If the value is not an NSString or cannot be converted to one, returns an empty string. The method supplements the NSCell implementation by validating and retaining any editing changes being made to cell text.

Availability
  • Available in OS X v10.0 through OS X v10.5.
See Also
Declared In
NSActionCell.h