Re: NSTextField changing first responder on return key not working
Re: NSTextField changing first responder on return key not working
- Subject: Re: NSTextField changing first responder on return key not working
- From: matt neuburg <email@hidden>
- Date: Mon, 19 Jul 2004 17:25:29 -0700
On Sun, 18 Jul 2004 22:19:31 -0400, Tod Cunningham <email@hidden> said:
>
I have a very simple window with a couple of text fields and a button.
>
The button is set with a key equivalent of return. When the return key
>
is pressed (via the button connection) I clear the text fields and want
>
to put the first responder back to the 1st text field. When I do this
>
by pushing the button with the mouse it works great. However, when I
>
press return the focus briefly changes to the 1st field (long enough
>
for me to see the focus ring) and then it goes back to whichever field
>
I pushed the return button in. Any ideas on what is going on?
What I do is implement control:textView:doCommandBySelector and "hit" the
button myself by sending it performClick:. m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.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.