MonobjcMonobjc Documented Class Library
AddTypesOwner Method (newTypes, newOwner)
NamespacesMonobjc.AppKitNSPasteboardAddTypesOwner(NSArray, Id)

Adds promises for the specified types to the first pasteboard item.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger AddTypesOwner(
	NSArray newTypes,
	Id newOwner
Public Overridable Function AddTypesOwner ( _
	newTypes As NSArray, _
	newOwner As Id _
) As NSInteger
virtual NSInteger AddTypesOwner(
	NSArray^ newTypes, 
	Id^ newOwner
newTypes (NSArray)
An array of NSString objects, each of which specifies a type of data that can be provided to the pasteboard.
newOwner (Id)
The object that provides the data for the specified types.
Return Value
The new change count, or 0 if there was an error adding the types.
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)