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.
- 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.
The receiver's new change count.
Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)