I’m waiting on my Obj-C book to arrive. In the mean time, I’ve got a couple questions that will be beneficial to me and others.
I have a text field who’s value is a variable “theQuery”. It is bound but the variable is not sent until I hit enter or exit the text field (Sent on end edit). I need it to set after each character change. I have found controlTextDidChange as mentioned in a previous post and that much is working but I can’t figure out how to actually update the variable. Do I need to send a return keystroke or something in the on controlTextDidChange_(Notification)
How do I get the string value of a drop down menu?
Thanks for your help. As moronic as I may sound, I think I am actually making some decent progress.
You’re confusing two issues here. Text fields can send an action, and this can be set to happen either Sent on End Editing or Sent on Enter Only, via the Attributes Inspector. The latter means the action, if you connect one, will be sent when you tab or click out of the field; the former means it will only be sent when you hit the return key. Neither is to do with bindings.
If you go to the Bindings Inspector, you’ll see a checkbox Continuously Updates Value; clicking that will make the value of the variable change continuously.