• 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: Sanri Parov <email@hidden>
  • Date: Sat, 24 Sep 2005 18:52:31 +0200


Il giorno 24/set/05, alle ore 17:48, Marcus S. Zarra ha scritto:

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.


Many thanks for the kind reply but... it doesn't work., even if you guessed right.
Apart from the fact that becomeFirstResponder has no arguments, it doesn't move to the next field nor it gives him the "focus".
Pardon me, but I don't know how to use responders or fucuses...
Thanks again.


--
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


References: 
 >nextKeyView and return (From: Sanri Parov <email@hidden>)
 >Re: nextKeyView and return (From: "Marcus S. Zarra" <email@hidden>)

  • Prev by Date: Re: Radio button group and binding "enabled" of other GUI elements
  • Next by Date: Custom Palette - Cannot Decode Object error
  • Previous by thread: Re: nextKeyView and return
  • Next by thread: Re: nextKeyView and return
  • Index(es):
    • Date
    • Thread