Re: NSTextField and bindings
Re: NSTextField and bindings
- Subject: Re: NSTextField and bindings
- From: Allan Odgaard <email@hidden>
- Date: Wed, 5 May 2004 12:07:04 +0200
On 4. May 2004, at 20:48, Steve Sims wrote:
Unless you, me, or somebody else comes up with something to solve this
one it looks like I may have to revert to an old-fashioned
non-bindings way of setting this value...
I didn't seem to spot anyone proposing a workaround (just read the
thread). The problem with the first example you gave is, that your
entire method (setText:) is wrapped in automatic
wiil/didChangeValueForKey messages.
So unless you get KVV to work, I'd suggest disabling the automatic
notification for the 'text' key (see
automaticallyNotifiesObserversForKey: in NSKeyValueObserving). As an
alternative you should also be able to send setText: using
performSelectorAfterDelay:withObject:, to get out of the current
"notification" -- although I have tested neither methods...
_______________________________________________
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.