MonobjcMonobjc Documented Class Library
TokenFieldCellShouldAddObjectsAtIndexMessage Method (tokenFieldCell, tokens, index)
NamespacesMonobjc.AppKitNSTokenFieldCell..::..NSTokenFieldCellDelegateEventDispatcherTokenFieldCellShouldAddObjectsAtIndexMessage(NSTokenFieldCell, NSArray, NSUInteger)

Allows the delegate to validate the tokens to be added to the receiver at a given index.

Original signature is '- (NSArray *)tokenFieldCell:(NSTokenFieldCell *)tokenFieldCell shouldAddObjects:(NSArray *)tokens atIndex:(NSUInteger)index'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSArray TokenFieldCellShouldAddObjectsAtIndexMessage(
	NSTokenFieldCell tokenFieldCell,
	NSArray tokens,
	NSUInteger index
)
Public Function TokenFieldCellShouldAddObjectsAtIndexMessage ( _
	tokenFieldCell As NSTokenFieldCell, _
	tokens As NSArray, _
	index As NSUInteger _
) As NSArray
public:
NSArray^ TokenFieldCellShouldAddObjectsAtIndexMessage(
	NSTokenFieldCell^ tokenFieldCell, 
	NSArray^ tokens, 
	NSUInteger index
)
Parameters
tokenFieldCell (NSTokenFieldCell)
The token field cell 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)