Re: CoreData: Can't modify an immutable model
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