• 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
NSArrayController: programmatically updating an MO's attribute/field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to deal with Java Script in None-GUI applications?
  • Next by Date: Re: How to Publish My Application Meeting details to iCal and also to .Mac
  • Previous by thread: RE: How to prevent window redraw when removing a view?
  • Next by thread: First-time-call arguments in beginPageInRect:atPlacement: seem to be incorrect
  • Index(es):
    • Date
    • Thread