MonobjcMonobjc Documented Class Library
TokenFieldWriteRepresentedObjectsToPasteboardMessage Method (tokenField, objects, pboard)
NamespacesMonobjc.AppKitNSTokenField..::..NSTokenFieldDelegateEventDispatcherTokenFieldWriteRepresentedObjectsToPasteboardMessage(NSTokenField, NSArray, NSPasteboard)

Sent so the delegate can write represented objects to the pasteboard corresponding to a given array of display strings.

Original signature is '- (BOOL)tokenField:(NSTokenField *)tokenField writeRepresentedObjects:(NSArray *)objects toPasteboard:(NSPasteboard *)pboard'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public bool TokenFieldWriteRepresentedObjectsToPasteboardMessage(
	NSTokenField tokenField,
	NSArray objects,
	NSPasteboard pboard
)
Public Function TokenFieldWriteRepresentedObjectsToPasteboardMessage ( _
	tokenField As NSTokenField, _
	objects As NSArray, _
	pboard As NSPasteboard _
) As Boolean
public:
bool TokenFieldWriteRepresentedObjectsToPasteboardMessage(
	NSTokenField^ tokenField, 
	NSArray^ objects, 
	NSPasteboard^ pboard
)
Parameters
tokenField (NSTokenField)
The token field that sent the message.
objects (NSArray)
An array of represented objects associated with the token field.
pboard (NSPasteboard)
The pasteboard to which to write the represented objects.
Return Value
YES if the delegate writes the represented objects to the pasteboard, NO otherwise. If NO, the token field writes the display strings to the NSStringPboardType pasteboard.
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)