[Previous] [Up] [Next]

NSDocumentController

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSDocumentController

NSDocumentController

Declared in: Gui/NSDocumentController.h

Inherits from: NSObject

Conforms to: NSObject


Instance Variables

Methods


Class Methods

sharedDocumentController

+ (id) sharedDocumentController;


Instances Methods

closeAllDocuments

- (BOOL) closeAllDocuments;

currentDirectory

- (NSString*) currentDirectory;

currentDocument

- (id) currentDocument;

displayNameForType:

- (NSString*) displayNameForType: (NSString*)docType;

documentClassForType:

- (Class) documentClassForType: (NSString*)docType;

documentForFileName:

- (id) documentForFileName: (NSString*)fileName;

documentForWindow:

- (id) documentForWindow: (NSWindow*)window;

documents

- (NSArray*) documents;

fileExtensionsFromType:

- (NSArray*) fileExtensionsFromType: (NSString*)docType;

fileNamesFromRunningOpenPanel

- (NSArray*) fileNamesFromRunningOpenPanel;

hasEditedDocuments

- (BOOL) hasEditedDocuments;

makeDocumentWithContentsOfFile:

- (id) makeDocumentWithContentsOfFile: (NSString*)fileName;

makeUntitledDocumentOfType:

- (id) makeUntitledDocumentOfType: (NSString*)type;

newDocument:

- (void) newDocument: (id)sender;

openDocument:

- (void) openDocument: (id)sender;

openDocumentWithContentsOfFile:

- (id) openDocumentWithContentsOfFile: (NSString*)fileName;

openUntitledDocumentOfType:

- (id) openUntitledDocumentOfType: (NSString*)docType;

reviewUnsavedDocumentsWithAlertTitle:cancellable:

- (BOOL) reviewUnsavedDocumentsWithAlertTitle: (NSString*)title cancellable: (BOOL)flag;

runModalOpenPanel:

- (int) runModalOpenPanel: (NSOpenPanel*)openPanel;

saveAllDocuments:

- (void) saveAllDocuments: (id)sender;

setShouldCreateUI:

- (void) setShouldCreateUI: (BOOL)flag;

shouldCreateUI

- (BOOL) shouldCreateUI;

typeFromFileExtension:

- (NSString*) typeFromFileExtension: (NSString*)fileExtension;

validateMenuItem:

- (BOOL) validateMenuItem: (NSMenuItem*)anItem;