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.
- 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:.
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.
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)