# NSDocument

Carl.Lindberg@hbo.com

The abstract document class

1999 Free Software Foundation, Inc.
Software documentation for the NSDocument class
AppKit/NSDocument.h
Description forthcoming.
isNativeType:
type
Description forthcoming.
readableTypes
Description forthcoming.
writableTypes
Description forthcoming.
addWindowController:
windowController
Description forthcoming.
canCloseDocument
Description forthcoming.
canCloseDocumentWithDelegate:
delegate
shouldCloseSelector:
shouldCloseSelector
contextInfo:
contextInfo
Description forthcoming.
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.
dataRepresentationOfType:
type
Description forthcoming.
displayName
Description forthcoming.
fileAttributesToWriteToFile:
fullDocumentPath
ofType:
docType
saveOperation:
saveOperationType
Description forthcoming.
fileName
Description forthcoming.
fileNameFromRunningSavePanelForSaveOperation:
saveOperation
Description forthcoming.
fileType
Description forthcoming.
fileTypeFromLastRunSavePanel
Description forthcoming.
fileWrapperRepresentationOfType:
type
Description forthcoming.
hasUndoManager
Description forthcoming.
init
Description forthcoming.
initWithContentsOfFile:
fileName
ofType:
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.
initWithContentsOfURL:
url
ofType:
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.
isDocumentEdited
Description forthcoming.
keepBackupFile
Description forthcoming.
loadDataRepresentation:
data
ofType:
type
Description forthcoming.
loadFileWrapperRepresentation:
wrapper
ofType:
type
Description forthcoming.
makeWindowControllers
Creates the window controllers for the current document. Calls addWindowController: on the receiver to add them to the controller array.
prepareSavePanel:
savePanel
Description forthcoming.
printDocument:
sender
Description forthcoming.
printInfo
Description forthcoming.
printShowingPrintPanel:
flag
Description forthcoming.
readFromFile:
fileName
ofType:
type
Description forthcoming.
readFromURL:
url
ofType:
type
Description forthcoming.
removeWindowController:
windowController
Description forthcoming.
revertDocumentToSaved:
sender
Description forthcoming.
revertToSavedFromFile:
fileName
ofType:
type
Description forthcoming.
revertToSavedFromURL:
url
ofType:
type
Description forthcoming.
runModalPageLayoutWithPrintInfo:
printInfo
Description forthcoming.
runModalSavePanel:
savePanel
withAccessoryView:
accessoryView
Description forthcoming.
runModalSavePanelForSaveOperation:
saveOperation
delegate:
delegate
didSaveSelector:
didSaveSelector
contextInfo:
contextInfo
Description forthcoming.
runPageLayout:
sender
Description forthcoming.
saveDocument:
sender
Description forthcoming.
saveDocumentAs:
sender
Description forthcoming.
saveDocumentTo:
sender
Description forthcoming.
saveDocumentWithDelegate:
delegate
didSaveSelector:
didSaveSelector
contextInfo:
contextInfo
Description forthcoming.
saveToFile:
fileName
saveOperation:
saveOperation
delegate:
delegate
didSaveSelector:
didSaveSelector
contextInfo:
contextInfo
Description forthcoming.
setFileName:
fileName
Description forthcoming.
setFileType:
type
Description forthcoming.
setHasUndoManager:
flag
Description forthcoming.
setPrintInfo:
printInfo
Description forthcoming.
setUndoManager:
undoManager
Description forthcoming.
setWindow:
aWindow
Description forthcoming.
shouldChangePrintInfo:
newPrintInfo
Description forthcoming.
shouldCloseWindowController:
windowController
Description forthcoming.
shouldCloseWindowController:
windowController
delegate:
delegate
shouldCloseSelector:
callback
contextInfo:
contextInfo
Description forthcoming.
shouldRunSavePanelWithAccessoryView
Description forthcoming.
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.
undoManager
Description forthcoming.
updateChangeCount:
change
Description forthcoming.
validateMenuItem:
anItem
Description forthcoming.
validateUserInterfaceItem:
anItem
Description forthcoming.
windowControllerDidLoadNib:
windowController
Description forthcoming.
windowControllerWillLoadNib:
windowController
Description forthcoming.
windowControllers
Description forthcoming.
windowNibName
Description forthcoming.
writeToFile:
fileName
ofType:
type
Description forthcoming.
writeToFile:
fileName
ofType:
type
originalFile:
origFileName
saveOperation:
saveOp
Description forthcoming.
writeToURL:
url
ofType:
type
Description forthcoming.
writeWithBackupToFile:
fileName
ofType:
fileType
saveOperation:
saveOp
Description forthcoming.