stringValue

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

Declaration

- (NSString *)stringValue

Overview

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.

See Also

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.

- setObjectValue:

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