NSTokenField Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.4 and later. |
| Companion guide | |
| Declared in | NSTokenField.h |
Overview
NSTokenField is a subclass of NSTextField that provides tokenized editing similar to the address field in the Mail application.
NSTokenField uses an NSTokenFieldCell to implement much of the control’s functionality. NSTokenField provides cover methods for most methods of NSTokenFieldCell, which invoke the corresponding cell method.
Tasks
Configuring the Token Style
Configuring the Tokenizing Character Set
Configuring the Completion Delay
Getting and Setting the Delegate
Class Methods
defaultCompletionDelay
Returns the default completion delay.
Discussion
The default completion delay is 0.
Availability
- Available in OS X v10.4 and later.
Declared In
NSTokenField.hdefaultTokenizingCharacterSet
Returns the default tokenizing character set.
Discussion
The default tokenizing character set is “,”.
Availability
- Available in OS X v10.4 and later.
Declared In
NSTokenField.hInstance Methods
completionDelay
Returns the receiver’s completion delay.
Availability
- Available in OS X v10.4 and later.
Declared In
NSTokenField.hdelegate
Returns the token field’s delegate.
Return Value
The token field’s delegate
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSTokenField.hsetCompletionDelay:
Sets the receiver’s completion delay.
Availability
- Available in OS X v10.4 and later.
See Also
Declared In
NSTokenField.hsetDelegate:
Sets the token field’s delegate
Parameters
- anObject
The delegate for the receiver. The delegate must conform to the
NSTokenFieldDelegate Protocolprotocol.
Availability
- Available in OS X v10.6 and later.
See Also
Declared In
NSTokenField.hsetTokenizingCharacterSet:
Sets the recevier’s tokenizing character set to characterSet.
Availability
- Available in OS X v10.4 and later.
See Also
Declared In
NSTokenField.hsetTokenStyle:
Returns the token style of the receiver.
Availability
- Available in OS X v10.4 and later.
See Also
Declared In
NSTokenField.htokenizingCharacterSet
Returns the receiver’s tokenizing character set.
Availability
- Available in OS X v10.4 and later.
Declared In
NSTokenField.htokenStyle
Returns the receiver’s token style.
Availability
- Available in OS X v10.4 and later.
See Also
Declared In
NSTokenField.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-05-24)