• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nextKeyView and return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: nextKeyView and return
      • From: Andreas Mayer <email@hidden>
    • Re: nextKeyView and return
      • From: Sanri Parov <email@hidden>
References: 
 >nextKeyView and return (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Modal session when opening a sheet
  • Next by Date: Re: Radio button group and binding "enabled" of other GUI elements
  • Previous by thread: nextKeyView and return
  • Next by thread: Re: nextKeyView and return
  • Index(es):
    • Date
    • Thread