Re: Newbie Question - selecting textFields
Re: Newbie Question - selecting textFields
- Subject: Re: Newbie Question - selecting textFields
- From: Vince DeMarco <email@hidden>
- Date: Tue, 26 Nov 2002 14:25:41 -0800
You need to have the initialFirst responder step up, you can do this in
IB.
Cocoa ignores the key loop you assign if the initialFirstResponder is
not set.
select the text field in question then select
Layout->Keyboard navigation->Make Inital First responder
vince
On Tuesday, November 26, 2002, at 11:28 AM, Hasan Diwan wrote:
NSWindow *window; // window containing the textfields tf1..tf4
[window makeFirstResponder:tf1];
That's untested, but should work.
On Tuesday, November 26, 2002, at 12:24 AM, Tom Gray wrote:
Hi, and as always, thanks!
I have four NSTextFields in a window. After the user enters a value
and hits return or tab, I validate the value. If the value is not
valid I want to reselect the text in that NSTextField and make it the
current text field.
My problem is, I cannot make it the current text field. The next text
field (as set in IB) becomes the current text field after the user
hits tab or return.
How do I programatically select one of my NSTextFields to be the "key"
text field?
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
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.
Hasan Diwan
OpenPGP KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA 4225 F166 40C2 BE42 DCA6
http://www.cs.rpi.edu/~diwanh/gpg.key
[demime 0.98b removed an attachment of type application/pgp-signature
which had a name of PGP.sig]
_______________________________________________
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.
_______________________________________________
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.