• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
stumped: how do I take action when a text field is tabbed out of?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Using bindings with an NSArray of NSStrings ?
  • Next by Date: Re: [OT] Debugger protection (was: Implementing Licensing ...)
  • Previous by thread: Re: Using bindings with an NSArray of NSStrings ?
  • Next by thread: Detecting low disk space
  • Index(es):
    • Date
    • Thread