NSDocument
Authors
- Carl Lindberg(
Carl.Lindberg@hbo.com
)
-
The abstract document class
Copyright: (C) 1999 Free Software Foundation, Inc.
Software documentation for the NSDocument class
Declared: AppKit/NSDocument.h
isNativeType:
+ (BOOL) isNativeType: (NSString*)type;
readableTypes
+ (NSArray*) readableTypes;
writableTypes
+ (NSArray*) writableTypes;
addWindowController:
- (void) addWindowController: (NSWindowController*)windowController;
canCloseDocument
- (BOOL) canCloseDocument;
canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
- (void) canCloseDocumentWithDelegate: (id)delegate shouldCloseSelector: (SEL)shouldCloseSelector contextInfo: (void*)contextInfo;
close
- (void) close;
dataRepresentationOfType:
- (NSData*) dataRepresentationOfType: (NSString*)type;
displayName
- (NSString*) displayName;
fileName
- (NSString*) fileName;
fileNameFromRunningSavePanelForSaveOperation:
- (NSString*) fileNameFromRunningSavePanelForSaveOperation: (NSSaveOperationType)saveOperation;
fileType
- (NSString*) fileType;
fileTypeFromLastRunSavePanel
- (NSString*) fileTypeFromLastRunSavePanel;
fileWrapperRepresentationOfType:
- (NSFileWrapper*) fileWrapperRepresentationOfType: (NSString*)type;
hasUndoManager
- (BOOL) hasUndoManager;
init
- (id) init;
initWithContentsOfFile:ofType:
- (id) initWithContentsOfFile: (NSString*)fileName ofType: (NSString*)fileType;
initWithContentsOfURL:ofType:
- (id) initWithContentsOfURL: (NSURL*)url ofType: (NSString*)fileType;
isDocumentEdited
- (BOOL) isDocumentEdited;
keepBackupFile
- (BOOL) keepBackupFile;
loadDataRepresentation:ofType:
- (BOOL) loadDataRepresentation: (NSData*)data ofType: (NSString*)type;
loadFileWrapperRepresentation:ofType:
- (BOOL) loadFileWrapperRepresentation: (NSFileWrapper*)wrapper ofType: (NSString*)type;
makeWindowControllers
- (void) makeWindowControllers;
prepareSavePanel:
- (BOOL) prepareSavePanel: (NSSavePanel*)savePanel;
printDocument:
- (IBAction) printDocument: (id)sender;
printInfo
- (NSPrintInfo*) printInfo;
printShowingPrintPanel:
- (void) printShowingPrintPanel: (BOOL)flag;
readFromFile:ofType:
- (BOOL) readFromFile: (NSString*)fileName ofType: (NSString*)type;
readFromURL:ofType:
- (BOOL) readFromURL: (NSURL*)url ofType: (NSString*)type;
removeWindowController:
- (void) removeWindowController: (NSWindowController*)windowController;
revertDocumentToSaved:
- (IBAction) revertDocumentToSaved: (id)sender;
revertToSavedFromFile:ofType:
- (BOOL) revertToSavedFromFile: (NSString*)fileName ofType: (NSString*)type;
revertToSavedFromURL:ofType:
- (BOOL) revertToSavedFromURL: (NSURL*)url ofType: (NSString*)type;
runModalPageLayoutWithPrintInfo:
- (int) runModalPageLayoutWithPrintInfo: (NSPrintInfo*)printInfo;
runModalSavePanel:withAccessoryView:
- (int) runModalSavePanel: (NSSavePanel*)savePanel withAccessoryView: (NSView*)accessoryView;
runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:
- (void) runModalSavePanelForSaveOperation: (NSSaveOperationType)saveOperation delegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
runPageLayout:
- (IBAction) runPageLayout: (id)sender;
saveDocument:
- (IBAction) saveDocument: (id)sender;
saveDocumentAs:
- (IBAction) saveDocumentAs: (id)sender;
saveDocumentTo:
- (IBAction) saveDocumentTo: (id)sender;
saveDocumentWithDelegate:didSaveSelector:contextInfo:
- (void) saveDocumentWithDelegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
saveToFile:saveOperation:delegate:didSaveSelector:contextInfo:
- (void) saveToFile: (NSString*)fileName saveOperation: (NSSaveOperationType)saveOperation delegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
setFileName:
- (void) setFileName: (NSString*)fileName;
setFileType:
- (void) setFileType: (NSString*)type;
setHasUndoManager:
- (void) setHasUndoManager: (BOOL)flag;
setPrintInfo:
- (void) setPrintInfo: (NSPrintInfo*)printInfo;
setUndoManager:
- (void) setUndoManager: (NSUndoManager*)undoManager;
setWindow:
- (void) setWindow: (NSWindow*)window;
shouldChangePrintInfo:
- (BOOL) shouldChangePrintInfo: (NSPrintInfo*)newPrintInfo;
shouldCloseWindowController:
- (BOOL) shouldCloseWindowController: (NSWindowController*)windowController;
shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:
- (void) shouldCloseWindowController: (NSWindowController*)windowController delegate: (id)delegate shouldCloseSelector: (SEL)callback contextInfo: (void*)contextInfo;
shouldRunSavePanelWithAccessoryView
- (BOOL) shouldRunSavePanelWithAccessoryView;
showWindows
- (void) showWindows;
undoManager
- (NSUndoManager*) undoManager;
updateChangeCount:
- (void) updateChangeCount: (NSDocumentChangeType)change;
validateMenuItem:
- (BOOL) validateMenuItem: (NSMenuItem*)anItem;
validateUserInterfaceItem:
- (BOOL) validateUserInterfaceItem: (id)anItem;
windowControllerDidLoadNib:
- (void) windowControllerDidLoadNib: (NSWindowController*)windowController;
windowControllerWillLoadNib:
- (void) windowControllerWillLoadNib: (NSWindowController*)windowController;
windowControllers
- (NSArray*) windowControllers;
windowNibName
- (NSString*) windowNibName;
writeToFile:ofType:
- (BOOL) writeToFile: (NSString*)fileName ofType: (NSString*)type;
writeToURL:ofType:
- (BOOL) writeToURL: (NSURL*)url ofType: (NSString*)type;
writeWithBackupToFile:ofType:saveOperation:
- (BOOL) writeWithBackupToFile: (NSString*)fileName ofType: (NSString*)fileType saveOperation: (NSSaveOperationType)saveOp;