Type Property

sharedDocumentController

Returns the shared NSDocumentController instance.

Declaration

@property(class, readonly, strong) __kindof NSDocumentController *sharedDocumentController;

Return Value

The shared NSDocumentController instance.

Discussion

If an NSDocumentController instance doesn’t exist yet, it is created.

Initialization reads in the document types from the CFBundleDocumentTypes property list (in Info.plist), registers the instance for NSWorkspaceWillPowerOffNotifications, and turns on the flag indicating that document user interfaces should be visible. You should always obtain your application’s NSDocumentController using this method.

See Also