Another try: removing the focus from an NSTextField
Another try: removing the focus from an NSTextField
- Subject: Another try: removing the focus from an NSTextField
- From: Marco Binder <email@hidden>
- Date: Thu, 08 Aug 2002 01:13:57 +0200
Again the question John McGruer asked before and I struggel with, too:
I have an NSTextField and want to remove the focus from it after the user is
done editing. So, I thought, in the action method (called after user hit
enter), I could just tell the window to make itself the first responder. But
it wont work. I also tried it in the ControlDidEndEditing delegate method,
but didnt work either. Just if i put it somewhere not directly connected
with the textfield (e.g. As an action for a button), it worked and made the
window the first responder again.
Where should I put the statement so I can move the focus back to the window
*right after* ending editing the textfield?
I4d appreciate any pointer!
Thanks in advance,
marco
_______________________________________________
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.