managedObjectContext
The managed object context for the document.
Declaration
var managedObjectContext: NSManagedObjectContext? { get set }Discussion
If a managed object context for the document does not exist, one is created automatically. If you want to customize the creation of the persistence stack, reimplement this property in your custom subclass and use your implementation to create the appropriate objects.
See Also
Related Documentation
- Core Data Programming Guide
- Document-Based App Programming Guide for Mac