Recognizing return/enter in TextField
Recognizing return/enter in TextField
- Subject: Recognizing return/enter in TextField
- From: Donald Brown <email@hidden>
- Date: Tue, 30 Apr 2002 10:20:07 -0500
I've got a search TextField in a toolbar, where the user presses return, my
document (which is a delegate of the textfield) sees controlDidEndEditing,
finds the relevant area, and highlights it. The problem is that when the
text field is no longer key, it sends again controlDidEndEditing, which
means it finds the second occurrence of the item. I tried subclassing
NSTextField to override keydown, but it's never called.
Any ideas?
Donald
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo
_______________________________________________
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.