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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com