Up
Authors
- Carl Lindberg (
Carl.Lindberg@hbo.com
)
-
The abstract document class
Copyright: (C) 1999 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSDocument.h
Standards:
Description forthcoming.
Method summary
+ (BOOL) isNativeType: (NSString*)type;
Description forthcoming.
+ (NSArray*) readableTypes;
Description forthcoming.
+ (NSArray*) writableTypes;
Description forthcoming.
- (void) addWindowController: (NSWindowController*)windowController;
Description forthcoming.
- (BOOL) canCloseDocument;
Description forthcoming.
- (void) canCloseDocumentWithDelegate: (id)delegate shouldCloseSelector: (SEL)shouldCloseSelector contextInfo: (void*)contextInfo;
Description forthcoming.
- (void) close;
Closes all the windows owned by the document, then
removes itself from the list of documents known by
the NSDocumentController. This method does not ask the
user if they want to save the document before closing.
It is closed without saving any information.
- (NSData*) dataRepresentationOfType: (NSString*)type;
Description forthcoming.
- (NSString*) displayName;
Description forthcoming.
- (NSDictionary*) fileAttributesToWriteToFile: (NSString*)fullDocumentPath ofType: (NSString*)docType saveOperation: (NSSaveOperationType)saveOperationType;
Description forthcoming.
- (NSString*) fileName;
Description forthcoming.
- (NSString*) fileNameFromRunningSavePanelForSaveOperation: (NSSaveOperationType)saveOperation;
Description forthcoming.
- (NSString*) fileType;
Description forthcoming.
- (NSString*) fileTypeFromLastRunSavePanel;
Description forthcoming.
- (NSFileWrapper*) fileWrapperRepresentationOfType: (NSString*)type;
Description forthcoming.
- (BOOL) hasUndoManager;
Description forthcoming.
- (id) init;
Description forthcoming.
- (id) initWithContentsOfFile: (NSString*)fileName ofType: (NSString*)fileType;
Initialises the receiver with the contents of
the document at fileName assuming that the
type of data is as specified by fileType.
Destroys the receiver and returns
nil
on failure.
- (id) initWithContentsOfURL: (NSURL*)url ofType: (NSString*)fileType;
Initialises the receiver with the contents of
the document at url assuming that the type
of data is as specified by fileType.
Destroys the receiver and returns nil
on failure.
- (BOOL) isDocumentEdited;
Description forthcoming.
- (BOOL) keepBackupFile;
Description forthcoming.
- (BOOL) loadDataRepresentation: (NSData*)data ofType: (NSString*)type;
Description forthcoming.
- (BOOL) loadFileWrapperRepresentation: (NSFileWrapper*)wrapper ofType: (NSString*)type;
Description forthcoming.
- (void) makeWindowControllers;
Description forthcoming.
- (BOOL) prepareSavePanel: (NSSavePanel*)savePanel;
Description forthcoming.
- (IBAction) printDocument: (id)sender;
Description forthcoming.
- (NSPrintInfo*) printInfo;
Description forthcoming.
- (void) printShowingPrintPanel: (BOOL)flag;
Description forthcoming.
- (BOOL) readFromFile: (NSString*)fileName ofType: (NSString*)type;
Description forthcoming.
- (BOOL) readFromURL: (NSURL*)url ofType: (NSString*)type;
Description forthcoming.
- (void) removeWindowController: (NSWindowController*)windowController;
Description forthcoming.
- (IBAction) revertDocumentToSaved: (id)sender;
Description forthcoming.
- (BOOL) revertToSavedFromFile: (NSString*)fileName ofType: (NSString*)type;
Description forthcoming.
- (BOOL) revertToSavedFromURL: (NSURL*)url ofType: (NSString*)type;
Description forthcoming.
- (int) runModalPageLayoutWithPrintInfo: (NSPrintInfo*)printInfo;
Description forthcoming.
- (int) runModalSavePanel: (NSSavePanel*)savePanel withAccessoryView: (NSView*)accessoryView;
Description forthcoming.
- (void) runModalSavePanelForSaveOperation: (NSSaveOperationType)saveOperation delegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
Description forthcoming.
- (IBAction) runPageLayout: (id)sender;
Description forthcoming.
- (IBAction) saveDocument: (id)sender;
Description forthcoming.
- (IBAction) saveDocumentAs: (id)sender;
Description forthcoming.
- (IBAction) saveDocumentTo: (id)sender;
Description forthcoming.
- (void) saveDocumentWithDelegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
Description forthcoming.
- (void) saveToFile: (NSString*)fileName saveOperation: (NSSaveOperationType)saveOperation delegate: (id)delegate didSaveSelector: (SEL)didSaveSelector contextInfo: (void*)contextInfo;
Description forthcoming.
- (void) setFileName: (NSString*)fileName;
Description forthcoming.
- (void) setFileType: (NSString*)type;
Description forthcoming.
- (void) setHasUndoManager: (BOOL)flag;
Description forthcoming.
- (void) setPrintInfo: (NSPrintInfo*)printInfo;
Description forthcoming.
- (void) setUndoManager: (NSUndoManager*)undoManager;
Description forthcoming.
- (void) setWindow: (NSWindow*)aWindow;
Description forthcoming.
- (BOOL) shouldChangePrintInfo: (NSPrintInfo*)newPrintInfo;
Description forthcoming.
- (BOOL) shouldCloseWindowController: (NSWindowController*)windowController;
Description forthcoming.
- (void) shouldCloseWindowController: (NSWindowController*)windowController delegate: (id)delegate shouldCloseSelector: (SEL)callback contextInfo: (void*)contextInfo;
Description forthcoming.
- (BOOL) shouldRunSavePanelWithAccessoryView;
Description forthcoming.
- (void) showWindows;
Makes all the documents windows visible by ordering
them to the front and making them main or key.
If the document has no windows, this method has no
effect.
- (NSUndoManager*) undoManager;
Description forthcoming.
- (void) updateChangeCount: (NSDocumentChangeType)change;
Description forthcoming.
- (BOOL) validateMenuItem: (NSMenuItem*)anItem;
Description forthcoming.
- (BOOL) validateUserInterfaceItem: (id<NSValidatedUserInterfaceItem>)anItem;
Description forthcoming.
- (void) windowControllerDidLoadNib: (NSWindowController*)windowController;
Description forthcoming.
- (void) windowControllerWillLoadNib: (NSWindowController*)windowController;
Description forthcoming.
- (NSArray*) windowControllers;
Description forthcoming.
- (NSString*) windowNibName;
Description forthcoming.
- (BOOL) writeToFile: (NSString*)fileName ofType: (NSString*)type;
Description forthcoming.
- (BOOL) writeToFile: (NSString*)fileName ofType: (NSString*)type originalFile: (NSString*)origFileName saveOperation: (NSSaveOperationType)saveOp;
Description forthcoming.
- (BOOL) writeToURL: (NSURL*)url ofType: (NSString*)type;
Description forthcoming.
- (BOOL) writeWithBackupToFile: (NSString*)fileName ofType: (NSString*)fileType saveOperation: (NSSaveOperationType)saveOp;
Description forthcoming.
Up