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.)
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.hfloatValue
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.)
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
-
validateEditing(NSControl)
Declared In
NSActionCell.hintValue
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.)
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
-
validateEditing(NSControl)
Declared In
NSActionCell.hsetFloatingPointFormat: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.)
Parameters
- autoRange
NOif you want the receiver to places digits to the right and left of the decimal point as specified (inleftDigitsandrightDigits;YESif 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
autoRangeisYES.- rightDigits
The maximum number of digits to the right of the decimal point. The receiver might interpret this value flexibly if
autoRangeisYES.
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.hsetObjectValue:
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.)
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.hstringValue
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.)
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
-
validateEditing(NSControl)
Declared In
NSActionCell.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-28)