MonobjcMonobjc Documented Class Library
AvailableTypeFromArray Method (types)
NamespacesMonobjc.AppKitNSPasteboardItemAvailableTypeFromArray(NSArray)

Returns from a given array of types the the first type contained in the pasteboard item, according to the ordering of types.

Original signature is '- (NSString *)availableTypeFromArray:(NSArray *)types'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString AvailableTypeFromArray(
	NSArray types
)
Public Overridable Function AvailableTypeFromArray ( _
	types As NSArray _
) As NSString
public:
virtual NSString^ AvailableTypeFromArray(
	NSArray^ types
)
Parameters
types (NSArray)
An array of strings representing UTIs, arranged in order of preference (most preferred as the 0th element in the array).
Return Value
The first (according to the sender's ordering of types) type in types contained in the pasteboard item, or nil if the receiver does not contain any types given in types.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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