Programmatically add data to a Persistent Data Model with Bindings
Programmatically add data to a Persistent Data Model with Bindings
- Subject: Programmatically add data to a Persistent Data Model with Bindings
- From: "Frederick C. Lee" <email@hidden>
- Date: Fri, 9 Dec 2005 12:40:39 -0800
Greetings:
How do you programmatically add data to a Persistent Storage object
that's connected to a NSArrayController? A prime example is the Core
Recipes demo.
This demo has NSArrayControllers and uses Core Data consisting of:
NSManagedObjectModel,
NSPersistentStoreCoordinator,
NSManagedObjectContext.
NSArrayController,
etc.
It's like a black box: I can add data via the GUI using
NSArrayController's Add method via IB.
But how do I add data programmatically (scenario: adding default data)?
For example,
Do I add data to the NSManagedObjectContext or the NSArrayController?
Ric.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden