MonobjcMonobjc Documented Class Library
TokenFieldShouldAddObjectsAtIndex Method (tokenField, tokens, index)
NamespacesMonobjc.AppKitINSTokenFieldDelegateTokenFieldShouldAddObjectsAtIndex(NSTokenField, NSArray, NSUInteger)

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 BasicVisual C++
NSArray TokenFieldShouldAddObjectsAtIndex(
	NSTokenField tokenField,
	NSArray tokens,
	NSUInteger index
)
Function TokenFieldShouldAddObjectsAtIndex ( _
	tokenField As NSTokenField, _
	tokens As NSArray, _
	index As NSUInteger _
) As NSArray
NSArray^ TokenFieldShouldAddObjectsAtIndex(
	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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)