Re: [newbie] /r invoking button instead of going to textfield?
Re: [newbie] /r invoking button instead of going to textfield?
- Subject: Re: [newbie] /r invoking button instead of going to textfield?
- From: Ondra Cada <email@hidden>
- Date: Sun, 15 Sep 2002 22:28:37 +0200
On Sunday, September 15, 2002, at 10:18 , Ando Sonenblick wrote:
I have a window with an NSTextField and an NSButton in it. The button is
set to have return activate it. However, with the NSTextField as the
first
responder it "eats" any return key presses.
Just link the text field target to the button's performClick:
So how do I make it so that the return key activates the button no matter
who else may be the first responder?
Generally it should not be done of course: presume the FR was a text view,
and the user then could not finish a line? Whew!
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.