NSPersistentDocument Core Data Tutorial
PDF
Introduction
Overview of the Tutorial
The User Interface
Tutorial Steps
NSPersistentDocument Limitations
Creating the Project, Model, and Interface
Create a New Project
Create the Data Model
Create the User Interface
Set the File Extension and Type
Build and Test
What Happened?
Creating a Custom Class
The Employee Class
Support for the Derived Value
Initializing the Employee ID
What Happened?
Code Listing for the Employee Class
Optional Extra—Sorting the Managers Popup
Adding a Department Object
Creating the Department
Fetching the Department
Custom Department Methods
Update the User Interface
Supporting Document Revert
Adopting the Mediator Pattern
What Happened?
Copy and Paste
Custom Employee Logic
Copy
Paste
Cut
Localizing and Customizing Model Property Names and Error Messages
Customizing and Localizing Model Names
Customizing the Document Alert Panel
What Happened?
Document Metadata
Setting Metadata for a Store
Set the Metadata for a New Store
Set the Metadata for an Existing Store
Build and Test
What Happened?
Writing a Spotlight Importer for Core Data
A Sheet for Creating a New Employee
Design Considerations
Implementation Overview
Declaring and Setting up NewObjectSheetController
Implement the NewObjectSheetController Class
Supporting Undo
What Happened?
Revision History
Related Reference
Objective-C
NSDocument
NSManagedObject
NSManagedObjectContext
NSPersistentDocument