| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in Mac OS X v10.4 and later. |
| Companion guide | |
| Declared in | NSTokenFieldCell.h |
NSTokenFieldCell is a subclass of NSTextFieldCell that provides tokenized editing of an array of objects similar to the address field in the Mail application. The objects may be strings or objects that can be represented as strings. A single token field cell can be presented in an NSTokenField control.
Returns the default completion delay.
+ (NSTimeInterval)defaultCompletionDelay
The default completion delay.
The default completion delay is 0.
NSTokenFieldCell.hReturns the default tokenizing character set.
+ (NSCharacterSet *)defaultTokenizingCharacterSet
The default tokenizing character set.
The default tokenizing character set contains the single character “,”.
NSTokenFieldCell.hReturns the receiver’s completion delay.
- (NSTimeInterval)completionDelay
The receiver’s completion delay.
NSTokenFieldCell.hReturns the receiver’s delegate.
- (id < NSTokenFieldCellDelegate >)delegate
The receiver’s delegate.
NSTokenFieldCell.hSets the receiver’s completion delay to a given delay.
- (void)setCompletionDelay:(NSTimeInterval)delay
The delay for the receiver.
NSTokenFieldCell.hSets the receiver’s delegate.
- (void)setDelegate:(id < NSTokenFieldCellDelegate >)anObject
The delegate for the receiver.
NSTokenFieldCell.hSets the receiver’s tokenizing character set to a given character set.
- (void)setTokenizingCharacterSet:(NSCharacterSet *)characterSet
The tokenizing character set for the receiver.
NSTokenFieldCell.hSets the token style of the receiver.
- (void)setTokenStyle:(NSTokenStyle)style
The token style for the receiver. The valid values are described in “NSTokenStyle.”
NSTokenFieldCell.hReturns the receiver’s tokenizing character set.
- (NSCharacterSet *)tokenizingCharacterSet
The receiver’s tokenizing character set.
NSTokenFieldCell.hReturns the receiver’s token style.
- (NSTokenStyle)tokenStyle
The receiver’s token style. The valid values are described in “NSTokenStyle.”
NSTokenFieldCell.hThe NSTokenStyle constants define how tokens are displayed and editable in the NSTokenFieldCell. These values are used by tokenStyle, setTokenStyle: and the delegate method tokenFieldCell:styleForRepresentedObject:.
enum {
NSDefaultTokenStyle,
NSPlainTextTokenStyle,
NSRoundedTokenStyle
};
typedef NSUInteger NSTokenStyle;
NSDefaultTokenStyleStyle best used for keyword type tokens.
Available in Mac OS X v10.4 and later.
Declared in NSTokenFieldCell.h.
NSPlainTextTokenStyleStyle to use for data you want represented as plain-text and without any token background.
Available in Mac OS X v10.4 and later.
Declared in NSTokenFieldCell.h.
NSRoundedTokenStyleStyle best used for address type tokens.
Available in Mac OS X v10.4 and later.
Declared in NSTokenFieldCell.h.
Last updated: 2009-05-24