Re: transformers? revisited but getting there..
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