Allows the delegate to validate the tokens to be added to the receiver at a particular location.
Original signature is '- (NSArray *)tokenField:(NSTokenField *)tokenField shouldAddObjects:(NSArray *)tokens atIndex:(NSUInteger)index'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public delegate NSArray TokenFieldShouldAddObjectsAtIndexEventHandler( NSTokenField tokenField, NSArray tokens, NSUInteger index )
Public Delegate Function TokenFieldShouldAddObjectsAtIndexEventHandler ( _ tokenField As NSTokenField, _ tokens As NSArray, _ index As NSUInteger _ ) As NSArray
public delegate NSArray^ TokenFieldShouldAddObjectsAtIndexEventHandler( NSTokenField^ tokenField, NSArray^ tokens, NSUInteger index )
Parameters
- tokenField (NSTokenField)
- The token field that sent the message.
- tokens (NSArray)
- An array of tokens to be inserted in the receiver at index.
- index (NSUInteger)
- The index of the receiver in which the array of tokens to be validated (tokens) will be inserted.
Return Value
An array of validated tokens.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)