• 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: transformers? revisited but getting there..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transformers? revisited but getting there..


  • Subject: Re: transformers? revisited but getting there..
  • From: Scott Stevenson <email@hidden>
  • Date: Sun, 19 Sep 2004 21:28:26 -0700


On Sep 19, 2004, at 9:32 AM, Theodore Petrosky wrote:

I have a popup managed by an arraycontroller. the
array is created by querying a database and retrieving
a list of clientnames and clientcodes. I then bind the
clientnames to the popup. my problem is that when I
change the popup, I need the clientcode to be updated
in the selection.loggedInByCode in the main
controller.

I think the overall concept is clear, but the answer you need will vary based on your implementation. Specifically, when you say clientCode needs to be "updated", do you mean you need to set a new value, or is it calculated dynamically and therefore just needs to be "refreshed" so the new value is picked up by bindings?


If it's the latter, you probably want to make clientCode a dependent key for clientName. Take a look at this:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueObserving/Concepts/DependentKeys.html>



If you don't think this addresses the question, please post some sample code or something.


   - Scott


-- Tree House Ideas http://treehouseideas.com/

_______________________________________________
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


References: 
 >transformers? revisited but getting there.. (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Broken BoingX demo?
  • Next by Date: Re: Draggable Tabs
  • Previous by thread: transformers? revisited but getting there..
  • Next by thread: Re: transformers? revisited but getting there..
  • Index(es):
    • Date
    • Thread