Re: nextKeyView and return
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