NSDocument
Class at a Glance
Overview
Writing of HFS Creator and File Type Codes
NSDocument Saving Behavior
Tasks
Constructors
Initializing an NSDocument
Loading and Representing Document Data
Creating and Managing Window Controllers
Managing Document Windows
Reading from and Writing to Files
Reading from and Writing to URLs
Autosaving
Managing Document Status
Responding to User Actions
Closing Documents
Reverting Documents
Printing Documents
Handling Errors
Working with Undo Manager
Managing File Types
Managing Menu Commands
Deprecated Methods
Constructors
Static Methods
isNativeType
readableTypes
writableTypes
Instance Methods
addWindowController
autosavedContentsFileURL
autosaveDocument
autosavingFileType
canCloseDocument
close
dataOfType
dataRepresentationOfType
displayName
fileAttributesToWriteToFile
fileAttributesToWriteToURLOfType
fileModificationDate
fileName
fileNameExtensionWasHiddenInLastRunSavePanel
fileNameFromRunningSavePanelForSaveOperation
fileType
fileTypeFromLastRunSavePanel
fileURL
fileWrapperOfType
fileWrapperRepresentationOfType
hasUnautosavedChanges
hasUndoManager
initForURLWithContentsOfURLOfType
initWithContentsOfURLOfType
initWithType
isDocumentEdited
keepBackupFile
lastError
loadDataRepresentation
loadFileWrapperRepresentation
makeWindowControllers
preparePageLayout
prepareSavePanel
presentError
presentErrorModalForWindow
printDocument
printDocumentWithSettings
printInfo
printOperationWithSettings
printShowingPrintPanel
readFromDataOfType
readFromFile
readFromFileWrapperOfType
readFromURL
readFromURLOfType
removeWindowController
revertDocumentToSaved
revertToContentsOfURLOfType
revertToSavedFromFile
revertToSavedFromURL
runModalPageLayout
runModalPageLayoutWithPrintInfo
runModalPrintOperation
runModalSavePanel
runPageLayout
saveDocument
saveDocumentAs
saveDocumentTo
saveToFile
saveToURLOfType
setAutosavedContentsFileURL
setFileModificationDate
setFileName
setFileType
setFileURL
setHasUndoManager
setLastError
setPrintInfo
setUndoManager
setWindow
shouldChangePrintInfo
shouldCloseWindowController
shouldRunSavePanelWithAccessoryView
showWindows
undoManager
updateChangeCount
validateMenuItem
willPresentError
windowControllerDidLoadNib
windowControllers
windowControllerWillLoadNib
windowForSheet
windowNibName
writableTypesForSaveOperation
writeSafelyToURLOfType
writeToFile
writeToURL
writeToURLOfType
writeWithBackupToFile
Constants
Index
Companion Guide
Document-Based Applications Overview