Re: Bug(?) in archive-as-xml
jon klein <[email protected]> Fri, 1 Apr 2005 10:30:47 -0500
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Mar 29, 2005, at 5:05 PM, idevx wrote: > The textbox isn't updated unless I press tab or enter. > If I simply click the button (let's say the button > title is "Apply"), the textbox doesn't lose focus and > so the last value I entered is ignored. Is there any > alternative way I can get the value of controls? I > don't really need to know when every control value > changes, but I would like to be able to poll their > value at a later time (for instance, I let the user > change all the values and only after he presses > "Apply" I read them) This happens because of the way text fields work in OS X -- they don't send any messages until they lose focus or the current "edit" is complete. You can make the button trigger the message in InterfaceBuilder though. In IB, command-click on your "Apply" button, and drag to the text field in question. In the Target/Action area of the inspector that pops up, choose "Select Text". This will cause the button to end the current edit and send a message to breve. - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve