NSTextField question
NSTextField question
- Subject: NSTextField question
- From: Aaron Tuller <email@hidden>
- Date: Tue, 3 Jul 2001 13:20:43 -0700
this seems really weird to me, when you type in an NSTextField and
then click on a button, the values do not stick unless you've clicked
somewhere else first. example:
I have a textfield called tf and a button called action.
i type in tf and then don't press enter or anything. the control is
still in focus, the cursor is blinking after the last character I
typed. then I click action, and the value of tf gets erased from the
view, all those characters I typed didn't do anything. why not? of
course, if I had clicked on another control in the window to get rid
of the focus and then clicked action, the text I typed would have
been "saved" in the control.
do I really need to implement controlTextDidChange and commit the
changes after every key stroke. that doesn't make any sense. what
am I missing?
thanks.
-aaron