stumped: how do I take action when a text field is tabbed out of?
stumped: how do I take action when a text field is tabbed out of?
- Subject: stumped: how do I take action when a text field is tabbed out of?
- From: Donald Hall <email@hidden>
- Date: Fri, 9 Apr 2004 00:30:07 -0600
I subclassed NSTextField so that I could override
becomeFirstResponder and resignFirstResponder. In my test code I
found that resignFirstResponder was being called immediately after
becomeFirstResponder even though my text field still had the focus
ring. Presumably this is because the window's field editor is taking
over as first responder.
I want to do something with the text in the text field when field
loses focus, but I can't figure out a way to do this. The
'textShouldEndEditing' message is not sent to the delegate unless
there has been an actual change in the contents of the field. Simply
hitting the tab key to change fields won't trigger it.
Can anyone suggest a way of doing this?
Thanks,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.