Instance Property

documentClassNames

An array of strings representing the custom document classes supported by this app.

Declaration

var documentClassNames: [String] { get }

Discussion

The items in the array are NSString objects, each of which represents the name of a document subclasses supported by the app. The document class names are derived from the app’s Info.plist. You can override this property and use it to return the names of document classes that are dynamically loaded from plugins.

See Also

Managing Document Types

var defaultType: String?

Returns the name of the document type that should be used when creating new documents.

func documentClass(forType: String) -> AnyClass?

Returns the NSDocument subclass associated with a given document type.

func displayName(forType: String) -> String?

Returns the descriptive name for the specified document type, which is used in the File Format pop-up menu of the Save As dialog.

func typeForContents(of: URL) -> String

Returns, for a specified URL, the document type identifier to use when opening the document at that location, if successful.