Re: Can add and delete items in coredata, but not change them
Re: Can add and delete items in coredata, but not change them
- Subject: Re: Can add and delete items in coredata, but not change them
- From: Alexander Reichstadt <email@hidden>
- Date: Tue, 18 Apr 2006 15:27:40 +0200
I was trying to change the properties of instances of entities, I
just found out how, i.e. retrieve a managedObject instance, and
change it using setValue:forKey. What was not obvious to me was that
I would tell an instance of something to commit changes to itself to
something higher up in the hierarchy. Instead I had something in mind
along the lines of a dictionary setValue:forKey: approach, the
dictionary being my data model, the key being the managed object's
unique key, and the value being some dictionary with the objects
properties and values.
Alex
On 18.04.2006, at 14:48, I. Savant wrote:
I'm confused by your wording. Do you mean you want to change the
*properties* of *instances* of *entities* within your *managed
object context*? Or are you trying to programmatically modify the
*managed object model*?
--
I.S.
On Apr 18, 2006, at 8:38 AM, Alexander Reichstadt wrote:
Hi,
it seems the documentation does only explain how to add or delete
but not how to change NSManagedObjects in a coredata model
programmatically.
Does someone have a code snippet that does that I could peek at?
Thanks for any help.
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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