MonobjcMonobjc Documented Class Library
DocumentClassForType Method (documentTypeName)
NamespacesMonobjc.AppKitNSDocumentControllerDocumentClassForType(NSString)

Returns the NSDocument subclass associated with a given document type.

Original signature is '- (Class)documentClassForType:(NSString *)documentTypeName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Class DocumentClassForType(
	NSString documentTypeName
)
Public Overridable Function DocumentClassForType ( _
	documentTypeName As NSString _
) As Class
public:
virtual Class^ DocumentClassForType(
	NSString^ documentTypeName
)
Parameters
documentTypeName (NSString)
The name of a document type, specified by CFBundleTypeName in the application’s Info.plist file.
Return Value
Returns the NSDocument subclass associated with documentTypeName. If the class cannot be found, returns nil.
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)