Re: Manually update a binding's display pattern
Re: Manually update a binding's display pattern
- Subject: Re: Manually update a binding's display pattern
- From: Brad <email@hidden>
- Date: Tue, 8 Jun 2004 01:58:29 -0400
On Jun 8, 2004, at 12:30 AM, Scott Anguish wrote:
On Jun 7, 2004, at 4:55 PM, Brad wrote:
Does anyone know if it's possible to change display pattern of a
binding? The only way I've found to do it is to reset the entire
binding (- bind:toObject:withKeyPath:options:). It works but is
causing a slowdown since it temporarily blocks.
currently that's the only way. if you need more flexibility, please
file a bug.
Thanks Scott. I had a feeling that was the answer, wanted to make
sure. I'll file a bug on being able to set a new options dictionary.
I can see a bunch of situation where it might be helpful, especially
the display pattern.
Or maybe there's a better way for me to achieve what I'm trying to
do. I have a text field that has 2 keys bound to it by
displayPatternValues. I want the information displayed slightly
different depending on the app's current state. Right now I have a
method that gets called at the state change that resets the binding
for the appropriate display pattern.
your model could implement a method that returns the correctly joined
string, and then set that key as being dependent on the two others.
that might be the best solution if you you're updating it frequently.
Good idea. I hadn't thought about adding a third bound value. That
should work nicely for this situation.
Thanks,
Brad
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.