0

I have a NSTextField in my MainMenu nib... enter image description here The selector for this text field is connected to the AppDelegate. I have also set the action to be sent upon the end of editing. Like so...

enter image description here

I have no idea why, but the action is only being sent when the user hits return. "Sent on end editing" has never behaved like this before. Any ideas why I'm having this odd behavior? Thank you so much for your help!

Tanner Silva
  • 279
  • 3
  • 14
  • How else are you trying to end editing? Does tab not work? – rdelmar Aug 20 '12 at 05:07
  • @rdelmar Tab does work but I've had different behavior in the past. Usually the selector got called a few times every second, as long as the string had changed. I could type "this is a string" and the selector would be called 5-6 times. Is that not normal? – Tanner Silva Aug 20 '12 at 06:03
  • 1
    I've never seen that behavior that you're describing with an action method for a text field. You can get the controlTextDidChange: delegate method called each time you type a character, but action methods are only called on end editing (tab, return, or clicking on another control that takes the focus) or on return -- as far as I remember, it's always been that way. – rdelmar Aug 20 '12 at 15:26
  • Wow that's really weird. Thank you for your help, rdelmar. – Tanner Silva Aug 20 '12 at 16:36

0 Answers0