MonobjcMonobjc Documented Class Library
DeclareTypesOwner Method (newTypes, newOwner)
NamespacesMonobjc.AppKitNSPasteboardDeclareTypesOwner(NSArray, Id)

Prepares the receiver for a change in its contents by declaring the new types of data it will contain and a new owner.

Original signature is '- (NSInteger)declareTypes:(NSArray *)newTypes owner:(id)newOwner'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger DeclareTypesOwner(
	NSArray newTypes,
	Id newOwner
Public Overridable Function DeclareTypesOwner ( _
	newTypes As NSArray, _
	newOwner As Id _
) As NSInteger
virtual NSInteger DeclareTypesOwner(
	NSArray^ newTypes, 
	Id^ newOwner
newTypes (NSArray)
An array of NSString objects that specify the types of data that may be added to the new pasteboard. The types should be ordered according to the preference of the source application, with the most preferred type coming first (typically, the richest representation).
newOwner (Id)
The object responsible for writing data to the pasteboard, or nil if you provide data for all types immediately. If you specify a newOwner object, it must support all of the types declared in the newTypes parameter and must remain valid for as long as the data is promised on the pasteboard.
Return Value
The receiver's new change count.
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)