MonobjcMonobjc Documented Class Library
SetPropertyListForType Method (propertyList, dataType)
NamespacesMonobjc.AppKitNSPasteboardSetPropertyListForType(Id, NSString)

Sets the given property list as the representation for the specified type for the first item on the receiver.

Original signature is '- (BOOL)setPropertyList:(id)propertyList forType:(NSString *)dataType'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetPropertyListForType(
	Id propertyList,
	NSString dataType
Public Overridable Function SetPropertyListForType ( _
	propertyList As Id, _
	dataType As NSString _
) As Boolean
virtual bool SetPropertyListForType(
	Id^ propertyList, 
	NSString^ dataType
propertyList (Id)
The property list data to write to the pasteboard.
dataType (NSString)
The type of property-list data in the propertyList parameter. The type must have been declared by a previous declareTypes:owner: message.
Return Value
YES if the data was written successfully, otherwise NO if ownership of the pasteboard has changed. Any other error raises an NSPasteboardCommunicationException.
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)