• 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
how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)


  • Subject: how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)
  • From: Rua Haszard Morris <email@hidden>
  • Date: Thu, 27 Nov 2008 16:47:55 +1300

I have a dialog that has a few controls as well as a complex custom view that itself contains other controls as subviews. The custom view (for various good reasons) is instantiated and added as a subview in code. A template view and NSView's replaceSubview:with is used so the positioning etc can be set in the nib.

To fully support keyboard access, I need to somehow set things up so that the user can tab from the nib-instantiated controls to the controls within the custom view and then back out again. How can I achieve this?

I'll also (presumably) need to set up the nextKeyView-chain for the controls within the custom view (composed of a hierarchy of subviews with their own subcontrols...), but I think I have an idea of how to do this.

thanks
Rua HM.
_______________________________________________

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: how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Scheme for efficiently archiving images.
  • Next by Date: Re: to get handle to "File/1.jpg"
  • Previous by thread: Re: Memory management puzzle
  • Next by thread: Re: how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)
  • Index(es):
    • Date
    • Thread