How to make controls "tabable" when loaded from plugin in Cocoa app?
Posted
by Randall
on Stack Overflow
See other posts from Stack Overflow
or by Randall
Published on 2010-06-11T21:05:49Z
Indexed on
2010/06/12
7:12 UTC
Read the original article
Hit count: 357
I have an application thad loads in plugins that have their own UI.
There is an IBOutlet called ContainerView in my AppDelegate.
When the plugin loads, it puts its own view (that is stored in a xib in the plugin bundle) into the Container view like so
[ContainerView addSubview:viewFromPlugin];
When the view loads, everything is fine but when I press tab the only controls that get any focus are ones outside of the ContainerView and none of them inside it get focus.
I've tried setting the container view as the initialFirstResponder and I've tried hooking up the nextKeyView from the last button in the tab order to the ContainerView.
Thanks.
© Stack Overflow or respective owner