Re: recalculateKeyViewLoop doesn't work
Re: recalculateKeyViewLoop doesn't work
- Subject: Re: recalculateKeyViewLoop doesn't work
- From: Keary Suska <email@hidden>
- Date: Thu, 29 Mar 2012 08:29:27 -0600
On Mar 29, 2012, at 5:47 AM, Nava Carmon wrote:
> Hi
>
> In my cocoa application I want to change the key order of my views. I fill in the nextKeyView reference for all subviews in the desired order. In the view's awakeFromNib function I do the following:
>
> [[self.view window] setInitialFirstResponder:self.view];
> [[self.view window] setAutorecalculatesKeyViewLoop:NO];
> [[[self view] window] recalculateKeyViewLoop];
>
> where the nextKeyView for the self.view is set to the first subview I want to appear in key order.
>
> Nothing helps and the the key ordering stays default. How to resolve it?
-recalculateKeyViewLoop is in fact ding what it is supposed to. You call this method to have the system determine the key-view loop for you. If you want your own ordering, that is not geometrical, you need to avoid -recalculateKeyViewLoop.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden