[Previous] [Up] [Next]

NSDocumentController

Authors

Richard Frith-Macdonald

Version: 0.1

Date: 28 February, 2000

NSDocumentController

NSDocumentController

Declared in: Gui/NSDocumentController.h

Inherits from: NSObject

Conforms to: NSObject



sharedDocumentController

+ (id) sharedDocumentController

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