Re: When do bound UI items set their data source?
Re: When do bound UI items set their data source?
- Subject: Re: When do bound UI items set their data source?
- From: Pontus Ilbring <email@hidden>
- Date: Thu, 3 Mar 2005 16:41:02 +0100
On 2005-03-03, at 14.33, Nicko van Someren wrote:
I'm having a problem with a program I'm writing that uses bindings to
allow the user to edit the model and then uses an action to carry out
processing based on the data in the model. Pretty standard I would
have thought. In the simplest case I have one NSTextField bound,
through and NSObjectController, to my data and one NSButton to fire
the action. The problem is that my model does not seem to get updated
when I need it to be. If I type text into the text field, hit return
and then press the button all is fine but if I type the text in and
then just click on the button, which I assert is the natural thing for
the user to do, then the new text has not made its way to the bound
variable by the time the action is received.
Try setting the binding's "Continuously Updates Value" checkbox in
Interface Builder.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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