[Previous] [Up] [Next]

NSDocument

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSDocument

NSDocument

Declared in: Gui/NSDocument.h

Inherits from: NSObject

Conforms to: NSObject


Instance Variables

Methods


Class Methods

isNativeType:

+ (BOOL) isNativeType: (NSString*)aType;

readableTypes

+ (NSArray*) readableTypes;

writableTypes

+ (NSArray*) writableTypes;


Instances Methods

addWindowController:

- (void) addWindowController: (NSWindowController*)aController;

canCloseDocument

- (BOOL) canCloseDocument;

close

- (void) close;

closeDocument:

- (IBAction) closeDocument: (id)sender;

dataRepresentationOfType:

- (NSData*) dataRepresentationOfType: (NSString*)aType;

displayName

- (NSString*) displayName;

fileName

- (NSString*) fileName;

fileNameFromRunningSavePanelForSaveOperation:

- (NSString*) fileNameFromRunningSavePanelForSaveOperation: (NSSaveOperationType)saveOperation;

fileType

- (NSString*) fileType;

fileWrapperRepresentationOfType:

- (NSFileWrapper*) fileWrapperRepresentationOfType: (NSString*)aType;

hasUndoManager

- (BOOL) hasUndoManager;

init

- (id) init;

initWithContentsOfFile:

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

isDocumentEdited

- (BOOL) isDocumentEdited;

keepBackupFile

- (BOOL) keepBackupFile;

loadDataRepresentation:

- (BOOL) loadDataRepresentation: (NSData*)docData;

loadFileWrapperRepresentation:

- (BOOL) loadFileWrapperRepresentation: (NSFileWrapper*)wrapper;

makeWindowControllers

- (NSArray*) makeWindowControllers;

printDocument:

- (void) printDocument: (id)sender;

printInfo

- (NSPrintInfo*) printInfo;

printShowingPrintPanel:

- (void) printShowingPrintPanel: (BOOL)flag;

readFromFile:

- (BOOL) readFromFile: (NSString*)fileName;

revertDocumentToSaved:

- (void) revertDocumentToSaved: (id)sender;

revertToSavedFromFile:

- (BOOL) revertToSavedFromFile: (NSString*)fileName;

runModalPageLayoutWithPrintInfo:

- (int) runModalPageLayoutWithPrintInfo: (NSPrintInfo*)printInfo;

runModalSavePanel:withAccessoryView:

- (int) runModalSavePanel: (NSSavePanel*)savePanel withAccessoryView: (NSView*)accessoryView;

runPageLayout:

- (void) runPageLayout: (id)sender;

saveDocument:

- (void) saveDocument: (id)sender;

saveDocumentAs:

- (void) saveDocumentAs: (id)sender;

saveDocumentTo:

- (void) saveDocumentTo: (id)sender;

setFileName:

- (void) setFileName: (NSString*)fileName;

setFileType:

- (void) setFileType: (NSString*)docType;

setHasUndoManager:

- (void) setHasUndoManager: (BOOL)flag;

setPrintInfo:

- (void) setPrintInfo: (NSPrintInfo*)printInfo;

setUndoManager:

- (void) setUndoManager: (NSUndoManager*)undoManager;

shouldChangePrintInfo:

- (BOOL) shouldChangePrintInfo: (NSPrintInfo*)newPrintInfo;

shouldCloseWindowController:

- (BOOL) shouldCloseWindowController: (NSWindowController*)windowController;

shouldRunSavePanelWithAccessoryView

- (BOOL) shouldRunSavePanelWithAccessoryView;

showWindows

- (void) showWindows;

undoManager

- (NSUndoManager*) undoManager;

updateChangeCount:

- (void) updateChangeCount: (NSDocumentChangeType)changeType;

validateMenuItem:

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

windowControllerDidLoadNib:

- (void) windowControllerDidLoadNib: (NSWindowController*)windowController;

windowControllerWillLoadNib:

- (void) windowControllerWillLoadNib: (NSWindowController*)windowController;

windowControllers

- (NSArray*) windowControllers;

windowNibName

- (NSString*) windowNibName;

writeToFile:

- (BOOL) writeToFile: (NSString*)fileName;