Re: makeFirstResponder NOT working
Re: makeFirstResponder NOT working
- Subject: Re: makeFirstResponder NOT working
- From: Eric Ocean <email@hidden>
- Date: Wed, 29 Sep 2004 10:39:39 -0700
Oops. I meant "give up first responder on the *other* text fields". My
bad. Also, note that you're not supposed to call resignFirstResponder:
yourself--this is just debugging code.
Eric Ocean
On Sep 29, 2004, at 10:31 AM, email@hidden wrote:
Hi,
I have a Window and in it I have 3 NSTextFields and 2 NSButtons. My OK
Button
has \r for its key equivalent.
Well, I would like to make the first NSTextField the First Responder
after I
click the OK Button or press the RETURN key. The code that will be
executed
when I either click the OK button or type the RETURN key has the
following
statement:
[[self window] makeFirstReponder: textField1];
The thing is when I click the OK button it all works just fine, BUT
when I press
the RETURN key, the statemente above is not respected by COCOA and
the First
Responder is the last NSTextField edited and NOT the First NSTextField.
How can I tell COCOA that I want the First Responder to be the first
NSTextField
either when the user clicks the OK button or when the user presses the
RETURN
key, which is the OK button's key equivalent?
Thanks for any help on this.
_______________________________________________________________________
____________
Acesse nosso portal www.click21.com.br
Porque internet grĂ¡tis, nem a Embratel pode fazer mais barato. Mas
pode fazer melhor.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden