[Previous]
[Up]
[Next]
NSDocumentController
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Gui/NSDocumentController.h
Inherits from: NSObject
Conforms to: NSObject
Instance Variables
Methods
Class Methods
+ (id) sharedDocumentController;
Instances Methods
- (BOOL) closeAllDocuments;
- (NSString*) currentDirectory;
- (id) currentDocument;
- (NSString*) displayNameForType: (NSString*)docType;
- (Class) documentClassForType: (NSString*)docType;
- (id) documentForFileName: (NSString*)fileName;
- (id) documentForWindow: (NSWindow*)window;
- (NSArray*) documents;
- (NSArray*) fileExtensionsFromType: (NSString*)docType;
- (NSArray*) fileNamesFromRunningOpenPanel;
- (BOOL) hasEditedDocuments;
- (id) makeDocumentWithContentsOfFile: (NSString*)fileName;
- (id) makeUntitledDocumentOfType: (NSString*)type;
- (void) newDocument: (id)sender;
- (void) openDocument: (id)sender;
- (id) openDocumentWithContentsOfFile: (NSString*)fileName;
- (id) openUntitledDocumentOfType: (NSString*)docType;
- (BOOL) reviewUnsavedDocumentsWithAlertTitle: (NSString*)title cancellable: (BOOL)flag;
- (int) runModalOpenPanel: (NSOpenPanel*)openPanel;
- (void) saveAllDocuments: (id)sender;
- (void) setShouldCreateUI: (BOOL)flag;
- (BOOL) shouldCreateUI;
- (NSString*) typeFromFileExtension: (NSString*)fileExtension;
- (BOOL) validateMenuItem: (NSMenuItem*)anItem;