NSDocument

E900210

NSDocument is a foundational Cocoa class that encapsulates the data and behavior of a document in macOS applications, handling tasks like reading, writing, saving, and managing document windows.

All labels observed (2)

Label Occurrences
NSDocument canonical 3
NSPersistentDocument 1

How this entity was disambiguated

Statements (65)

Predicate Object
instanceOf AppKit class
Cocoa class
Objective-C class
baseClass NSObject
conformsTo NSCoding
NSMenuItemValidation
NSUserInterfaceValidations
designPattern Model-View-Controller
documentationURL https://developer.apple.com/documentation/appkit/nsdocument
domain macOS application development
framework AppKit.framework
hasMethod -autosavesInPlace
-canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
-close
-dataOfType:error:
-duplicateDocument:
-makeWindowControllers
-printDocument:
-readFromData:ofType:error:
-readFromURL:ofType:error:
-revertDocumentToSaved:
-saveDocument:
-saveDocumentAs:
-saveDocumentTo:
-showWindows
-updateChangeCount:
-windowControllers
-writeToURL:ofType:error:
hasProperty fileModificationDate
fileType
fileURL
undoManager
windowControllers
introducedIn macOS
language Objective-C
Swift
partOf Cocoa document architecture
linked to: macOS Cocoa
primaryRole encapsulating document data and behavior
relatedConcept document-based application
supports asynchronous reading
asynchronous writing
autosaving documents
autosaving in place
document duplication
document versioning
exporting documents
file coordination
file presenters
file-based documents
managing document windows
multiple document windows
printing documents
reading documents
reading from URLs
reverting documents
saving documents
state restoration
untitled documents
writing documents
writing to URLs
typicalSubclassResponsibility creating and managing window controllers
implementing reading and writing methods
usedWith NSDocumentController
NSPersistentDocument
linked to: NSDocument

NSWindowController

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

Application Kit coreClass NSDocument
NSWindow relatedConcept NSDocument
NSDocument usedWith NSPersistentDocument
linked to: NSDocument
NSWindowController oftenUsedWith NSDocument