• 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: recalculateKeyViewLoop doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >recalculateKeyViewLoop doesn't work (From: Nava Carmon <email@hidden>)

  • Prev by Date: Re: Getting the best frame rate for NSView drawing
  • Next by Date: Re: Trouble with code signing and app store submission
  • Previous by thread: recalculateKeyViewLoop doesn't work
  • Next by thread: Custom NSClipView and overlay scrollers
  • Index(es):
    • Date
    • Thread