NSArrayController: programmatically updating an MO's attribute/field
NSArrayController: programmatically updating an MO's attribute/field
- Subject: NSArrayController: programmatically updating an MO's attribute/field
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 30 Jan 2006 10:20:41 -0800
Greetings:
Here's the scenario:
'MO' = Customized NSManagedObject.
1) I have an unbound NSTextView on my main page that can supply info
to any MO.
2) I have access to a number of NSArrayControllers (and hence, their
MOs) from my program.
3) I also have any MO's ObjectID, depending which is "in focus".
Goal: Merely programmatically update an attribute/field within the
target NSManageObject.
That is, stuffing a NSAttributeString into the target's MO's
transient field. The MO's accessor will transform the transient
field into a binary object for storage.
I'm thinking via their respective NSArrayControllers' instances.
Must I actually build a new object and replace the target object
within NSArrayController?
Or can I just update a attribute/field within the object (preferred
way)?
Question: What's the most efficient/safe way to connect to a target
NSManagedObject (depending on the Context of the situation)?
That is, keeping GUI & MOC in sync and happy.
Regards,
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