• 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
Re: CoreData: Can't modify an immutable model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData: Can't modify an immutable model


  • Subject: Re: CoreData: Can't modify an immutable model
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 5 Feb 2008 10:18:03 -0800


On 2008 Feb, 05, at 8:05, Chris Schmitt wrote:

If I use the insertNewObjectForEntityForName:inManagedObjectContext: method then my instance will be added to the scratch pad. And if I had a table view bound to an array controller who is bound to that entity the value would appear before I set my attributes.

No, or maybe only for a few microseconds. I was kind of confused by this the first time that I used Core Data...
First, you "insert".
Then, you modify.
Seems backwards, but it works. You don't "create" a managed object.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >CoreData: Can't modify an immutable model (From: Chris Schmitt <email@hidden>)
 >Re: CoreData: Can't modify an immutable model (From: "I. Savant" <email@hidden>)
 >Re: CoreData: Can't modify an immutable model (From: Chris Schmitt <email@hidden>)

  • Prev by Date: Re: PDFAnnotationLine problem
  • Next by Date: Re: ScreenSaverView and Core Animation
  • Previous by thread: Re: CoreData: Can't modify an immutable model
  • Next by thread: Re: CoreData: Can't modify an immutable model
  • Index(es):
    • Date
    • Thread