• 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: When do bound UI items set their data source?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >When do bound UI items set their data source? (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: NSSlider and mouse events
  • Next by Date: Re: keyDown:not receiving Command + key events, space bar, left/right arrows
  • Previous by thread: When do bound UI items set their data source?
  • Next by thread: NSSlider and mouse events
  • Index(es):
    • Date
    • Thread