Up
Authors
- Carl Lindberg (
Carl.Lindberg@hbo.com
)
-
The abstract document class
Copyright: (C) 1999 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSDocument.h
Availability: OpenStep
Description forthcoming.
Method summary
+ (BOOL)
isNativeType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
readableTypes;
Availability: OpenStep
Description forthcoming.
+ (
NSArray*)
writableTypes;
Availability: OpenStep
Description forthcoming.
- (void)
addWindowController: (
NSWindowController*)windowController;
Availability: OpenStep
Description forthcoming.
- (void)
autosaveDocumentWithDelegate: (id)delegate
didAutosaveSelector: (SEL)didAutosaveSelector
contextInfo: (void*)context;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSURL*)
autosavedContentsFileURL;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSString*)
autosavingFileType;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
canCloseDocument;
Availability: MacOS-X 10.0.0 removed at MacOS-X 10.4.0
Description forthcoming.
- (void)
canCloseDocumentWithDelegate: (id)delegate
shouldCloseSelector: (SEL)shouldCloseSelector
contextInfo: (void*)contextInfo;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (void)
close;
Availability: OpenStep
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*)
dataOfType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSData*)
dataRepresentationOfType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
displayName;
Availability: OpenStep
Description forthcoming.
- (
NSDate*)
fileModificationDate;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSString*)
fileName;
Availability: OpenStep
Description forthcoming.
- (BOOL)
fileNameExtensionWasHiddenInLastRunSavePanel;
Availability: MacOS-X 10.1.0
Description forthcoming.
- (
NSString*)
fileNameFromRunningSavePanelForSaveOperation: (
NSSaveOperationType)saveOperation;
Availability: MacOS-X 10.0.0 removed at MacOS-X 10.4.0
Description forthcoming.
- (
NSString*)
fileType;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
fileTypeFromLastRunSavePanel;
Availability: OpenStep
Description forthcoming.
- (
NSURL*)
fileURL;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSFileWrapper*)
fileWrapperRepresentationOfType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
hasUnautosavedChanges;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
hasUndoManager;
Availability: OpenStep
Description forthcoming.
- (id)
init;
Availability: OpenStep
Description forthcoming.
- (id)
initForURL: (
NSURL*)forUrl
withContentsOfURL: (
NSURL*)url
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (id)
initWithContentsOfFile: (
NSString*)fileName
ofType: (
NSString*)fileType;
Availability: OpenStep
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;
Availability: OpenStep
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.
- (id)
initWithContentsOfURL: (
NSURL*)url
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (id)
initWithType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
isDocumentEdited;
Availability: OpenStep
Description forthcoming.
- (BOOL)
keepBackupFile;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
lastComponentOfFileName;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
loadDataRepresentation: (
NSData*)data
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
loadFileWrapperRepresentation: (
NSFileWrapper*)wrapper
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (void)
makeWindowControllers;
Availability: OpenStep
Creates the window controllers for the current
document. Calls addWindowController: on the
receiver to add them to the controller array.
- (BOOL)
preparePageLayout: (
NSPageLayout*)pageLayout;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
prepareSavePanel: (
NSSavePanel*)savePanel;
Availability: OpenStep
Description forthcoming.
- (BOOL)
presentError: (
NSError*)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
presentError: (
NSError*)error
modalForWindow: (
NSWindow*)window
delegate: (id)delegate
didPresentSelector: (SEL)sel
contextInfo: (void*)context;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (IBAction)
printDocument: (id)sender;
Availability: OpenStep
Description forthcoming.
- (void)
printDocumentWithSettings: (
NSDictionary*)settings
showPrintPanel: (BOOL)flag
delegate: (id)delegate
didPrintSelector: (SEL)sel
contextInfo: (void*)context;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSPrintInfo*)
printInfo;
Availability: OpenStep
Description forthcoming.
- (void)
printShowingPrintPanel: (BOOL)flag;
Availability: OpenStep
Description forthcoming.
- (BOOL)
readFromData: (
NSData*)data
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
readFromFile: (
NSString*)fileName
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
readFromFileWrapper: (
NSFileWrapper*)wrapper
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
readFromURL: (
NSURL*)url
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
readFromURL: (
NSURL*)url
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
removeWindowController: (
NSWindowController*)windowController;
Availability: OpenStep
Description forthcoming.
- (IBAction)
revertDocumentToSaved: (id)sender;
Availability: OpenStep
Description forthcoming.
- (BOOL)
revertToContentsOfURL: (
NSURL*)url
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (BOOL)
revertToSavedFromFile: (
NSString*)fileName
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
revertToSavedFromURL: (
NSURL*)url
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (
NSInteger)
runModalPageLayoutWithPrintInfo: (
NSPrintInfo*)printInfo;
Availability: OpenStep
Description forthcoming.
- (void)
runModalPageLayoutWithPrintInfo: (
NSPrintInfo*)info
delegate: (id)delegate
didRunSelector: (SEL)sel
contextInfo: (void*)context;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
runModalPrintOperation: (
NSPrintOperation*)op
delegate: (id)delegate
didRunSelector: (SEL)sel
contextInfo: (void*)context;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSInteger)
runModalSavePanel: (
NSSavePanel*)savePanel
withAccessoryView: (
NSView*)accessoryView;
Availability: MacOS-X 10.0.0 removed at MacOS-X 10.4.0
Description forthcoming.
- (void)
runModalSavePanelForSaveOperation: (
NSSaveOperationType)saveOperation
delegate: (id)delegate
didSaveSelector: (SEL)didSaveSelector
contextInfo: (void*)contextInfo;
Availability: OpenStep
Description forthcoming.
- (IBAction)
runPageLayout: (id)sender;
Availability: OpenStep
Description forthcoming.
- (IBAction)
saveDocument: (id)sender;
Availability: OpenStep
Description forthcoming.
- (IBAction)
saveDocumentAs: (id)sender;
Availability: OpenStep
Description forthcoming.
- (IBAction)
saveDocumentTo: (id)sender;
Availability: OpenStep
Description forthcoming.
- (void)
saveDocumentWithDelegate: (id)delegate
didSaveSelector: (SEL)didSaveSelector
contextInfo: (void*)contextInfo;
Availability: OpenStep
Description forthcoming.
- (void)
saveToFile: (
NSString*)fileName
saveOperation: (
NSSaveOperationType)saveOperation
delegate: (id)delegate
didSaveSelector: (SEL)didSaveSelector
contextInfo: (void*)contextInfo;
Availability: OpenStep
Description forthcoming.
- (void)
saveToURL: (
NSURL*)url
ofType: (
NSString*)type
forSaveOperation: (
NSSaveOperationType)op
delegate: (id)delegate
didSaveSelector: (SEL)didSaveSelector
contextInfo: (void*)contextInfo;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
setAutosavedContentsFileURL: (
NSURL*)url;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
setFileModificationDate: (
NSDate*)date;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
setFileName: (
NSString*)fileName;
Availability: OpenStep
Description forthcoming.
- (void)
setFileType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (void)
setFileURL: (
NSURL*)url;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
setHasUndoManager: (BOOL)flag;
Availability: OpenStep
Description forthcoming.
- (void)
setLastComponentOfFileName: (
NSString*)str;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
setPrintInfo: (
NSPrintInfo*)printInfo;
Availability: OpenStep
Description forthcoming.
- (void)
setUndoManager: (
NSUndoManager*)undoManager;
Availability: OpenStep
Description forthcoming.
- (void)
setWindow: (
NSWindow*)aWindow;
Availability: OpenStep
Description forthcoming.
- (BOOL)
shouldChangePrintInfo: (
NSPrintInfo*)newPrintInfo;
Availability: OpenStep
Description forthcoming.
- (BOOL)
shouldCloseWindowController: (
NSWindowController*)windowController;
Availability: MacOS-X 10.0.0 removed at MacOS-X 10.4.0
Description forthcoming.
- (void)
shouldCloseWindowController: (
NSWindowController*)windowController
delegate: (id)delegate
shouldCloseSelector: (SEL)callback
contextInfo: (void*)contextInfo;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (BOOL)
shouldRunSavePanelWithAccessoryView;
Availability: OpenStep
Description forthcoming.
- (void)
showWindows;
Availability: OpenStep
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;
Availability: OpenStep
Description forthcoming.
- (void)
updateChangeCount: (
NSDocumentChangeType)change;
Availability: OpenStep
Description forthcoming.
- (BOOL)
validateMenuItem: (
NSMenuItem*)anItem;
Availability: OpenStep
Description forthcoming.
- (BOOL)
validateUserInterfaceItem: (id
)anItem;
Availability: OpenStep
Description forthcoming.
- (
NSError*)
willPresentError: (
NSError*)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
windowControllerDidLoadNib: (
NSWindowController*)windowController;
Availability: OpenStep
Description forthcoming.
- (void)
windowControllerWillLoadNib: (
NSWindowController*)windowController;
Availability: OpenStep
Description forthcoming.
- (
NSArray*)
windowControllers;
Availability: OpenStep
Description forthcoming.
- (
NSWindow*)
windowForSheet;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSString*)
windowNibName;
Availability: OpenStep
Description forthcoming.
- (BOOL)
writeToFile: (
NSString*)fileName
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
writeToURL: (
NSURL*)url
ofType: (
NSString*)type;
Availability: OpenStep
Description forthcoming.
- (BOOL)
writeToURL: (
NSURL*)url
ofType: (
NSString*)type
error: (
NSError**)error;
Availability: MacOS-X 10.4.0
Description forthcoming.
Up