MonobjcMonobjc Documented Class Library
SetDataForType Method (data, type)
NamespacesMonobjc.AppKitNSPasteboardItemSetDataForType(NSData, NSString)

Sets the value for a specified type as an NSData object.

Original signature is '- (BOOL)setData:(NSData *)data forType:(NSString *)type'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetDataForType(
	NSData data,
	NSString type
)
Public Overridable Function SetDataForType ( _
	data As NSData, _
	type As NSString _
) As Boolean
public:
virtual bool SetDataForType(
	NSData^ data, 
	NSString^ type
)
Parameters
data (NSData)
An NSData object containing the value for the representation specified by type.
type (NSString)
A UTI type string.
Return Value
YES if the value was set successfully, otherwise NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)