how to set up nextKeyView, full keyboard access etc, for custom subviews set up in code (rather than nib)
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