• 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
nextKeyView order is ignored after loading into NSTabView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nextKeyView order is ignored after loading into NSTabView


  • Subject: nextKeyView order is ignored after loading into NSTabView
  • From: Steve Mills <email@hidden>
  • Date: Tue, 03 Dec 2013 16:08:23 -0600

We have a window that has a tab view that contains 2 tabs. The 2 tabs contain empty views. The actual views are in their own specific xibs and get loaded manually, then we replace the temp views in the tabs with the actual views via:

tab.view = realView;

At that point, the key loop is being recalculated, even though the window has the autorecalculatesKeyViewLoop set to NO. This screws up our nextKeyView order. I've set a symbolic breakpoint on setNextKeyView, but it only stops twice, not once for all the fields that are in the real view. After setting the tab's view above, I walk the nextKeyView chain and see a totally different list. Where previously it contained only the editable NSTextFields that we specifically set to be nextKeyViews in the xib, it now contains *every* view in the xib, including non-editable NSTextFields that also have their refusesFirstResponder set to YES.

Why is this happening and how can I prevent it?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255


_______________________________________________

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


  • Follow-Ups:
    • Re: nextKeyView order is ignored after loading into NSTabView
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: ToolTips for Matrix Cells
  • Next by Date: +keyPathsForValuesAffecting<Foo> via outlet makes Cocoa Bindings burp
  • Previous by thread: Re: NSToolbar unhidden in fullscreen mode
  • Next by thread: Re: nextKeyView order is ignored after loading into NSTabView
  • Index(es):
    • Date
    • Thread