• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Programmatically add data to a Persistent Data Model with Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Programmatically add data to a Persistent Data Model with Bindings
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: makeKeyAndOrderFront
  • Next by Date: Re: Using instance variable from NSArray of objects
  • Previous by thread: Re: makeKeyAndOrderFront
  • Next by thread: Re: Programmatically add data to a Persistent Data Model with Bindings
  • Index(es):
    • Date
    • Thread