Re: nextKeyView and return
Re: nextKeyView and return
- Subject: Re: nextKeyView and return
- From: "Marcus S. Zarra" <email@hidden>
- Date: Sat, 24 Sep 2005 09:48:03 -0600
I am guessing you want to programmatically move the focus whe the user
presses enter? I am also guessing that you have an action tied to the
field when the user presses the enter key? In that case it should be
as simple as:
- (IBAction)yourButtonAction:(id)sender
{
[[sender nextResponder] becomeFirstResponder:sender];
}
Naturally your code would need to be added but that should advance the
focus for you.
On 9/24/05, Sanri Parov <email@hidden> wrote:
> Hi everybody,
>
> I've got in a single window three nstextfields which are connected
> each other with a nextKeyView outlet; the action is sent after
> pressing enter, for each field.
> I'd just want the cursor to go onto the following field after
> pressing enter, like the user do when it press TAB, and permit me to
> insert another field.
>
> How can I do this?
> Many thanks.
>
> --
> Sanri Parov
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden