NSDocumentController

Authors

Carl Lindberg( Carl.Lindberg@hbo.com )
The document controller class

Copyright: (C) 1999 Free Software Foundation, Inc.

Software documentation for the NSDocumentController class

NSDocumentController : NSObject

Declared: AppKit/NSDocumentController.h

sharedDocumentController

+ (id) sharedDocumentController;


URLsFromRunningOpenPanel

- (NSArray*) URLsFromRunningOpenPanel;


addDocument:

- (void) addDocument: (NSDocument*)document;


clearRecentDocuments:

- (IBAction) clearRecentDocuments: (id)sender;


closeAllDocuments

- (BOOL) closeAllDocuments;


closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:

- (void) closeAllDocumentsWithDelegate: (id)delegate didCloseAllSelector: (SEL)didAllCloseSelector contextInfo: (void*)contextInfo;


currentDirectory

- (NSString*) currentDirectory;


currentDocument

- (id) currentDocument;


displayNameForType:

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


documentClassForType:

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


documentForFileName:

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


documentForWindow:

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


documents

- (NSArray*) documents;


fileExtensionsFromType:

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


fileNamesFromRunningOpenPanel

- (NSArray*) fileNamesFromRunningOpenPanel;


hasEditedDocuments

- (BOOL) hasEditedDocuments;


makeDocumentWithContentsOfFile:ofType:

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


makeDocumentWithContentsOfURL:ofType:

- (id) makeDocumentWithContentsOfURL: (NSURL*)url ofType: (NSString*)type;


makeUntitledDocumentOfType:

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


newDocument:

- (IBAction) newDocument: (id)sender;


noteNewRecentDocument:

- (void) noteNewRecentDocument: (NSDocument*)aDocument;


noteNewRecentDocumentURL:

- (void) noteNewRecentDocumentURL: (NSURL*)anURL;


openDocument:

- (IBAction) openDocument: (id)sender;


openDocumentWithContentsOfFile:display:

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


openDocumentWithContentsOfURL:display:

- (id) openDocumentWithContentsOfURL: (NSURL*)url display: (BOOL)display;


openUntitledDocumentOfType:display:

- (id) openUntitledDocumentOfType: (NSString*)type display: (BOOL)display;


recentDocumentURLs

- (NSArray*) recentDocumentURLs;


removeDocument:

- (void) removeDocument: (NSDocument*)document;


reviewUnsavedDocumentsWithAlertTitle:cancellable:

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


reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:

- (void) reviewUnsavedDocumentsWithAlertTitle: (NSString*)title cancellable: (BOOL)cancellable delegate: (id)delegate didReviewAllSelector: (SEL)didReviewAllSelector contextInfo: (void*)contextInfo;


runModalOpenPanel:forTypes:

- (int) runModalOpenPanel: (NSOpenPanel*)openPanel forTypes: (NSArray*)openableFileExtensions;


saveAllDocuments:

- (IBAction) saveAllDocuments: (id)sender;


setShouldCreateUI:

- (void) setShouldCreateUI: (BOOL)flag;


shouldCreateUI

- (BOOL) shouldCreateUI;


typeFromFileExtension:

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


validateMenuItem:

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


validateUserInterfaceItem:

- (BOOL) validateUserInterfaceItem: (id)anItem;