MonobjcMonobjc Documented Class Library
DataForType Method (dataType)
NamespacesMonobjc.AppKitNSPasteboardDataForType(NSString)

Returns the data for the specified type from the first item in the receiver that contains the type.

Original signature is '- (NSData *)dataForType:(NSString *)dataType'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSData DataForType(
	NSString dataType
)
Public Overridable Function DataForType ( _
	dataType As NSString _
) As NSData
public:
virtual NSData^ DataForType(
	NSString^ dataType
)
Parameters
dataType (NSString)
The type of data you want to read from the pasteboard. This value should be one of the types returned by types or availableTypeFromArray:.
Return Value
A data object containing the data for the specified type from the first item in the receiver that contains the type, or nil if the contents of the pasteboard changed since they were last checked. This method may also return nil if the pasteboard server cannot supply the data in time—for example, if the pasteboard’s owner is slow in responding to a pasteboard:provideDataForType: message and the interprocess communication times out.
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)