How to make my NSViewControllers participate in responder chain?
How to make my NSViewControllers participate in responder chain?
- Subject: How to make my NSViewControllers participate in responder chain?
- From: Rick Mann <email@hidden>
- Date: Sat, 30 Jun 2018 02:46:12 -0700
I have a complex view hierarchy with a lot of controllers. I'd like to provide
menu commands that the various controllers can respond to, but I have a couple
of problems:
1) I can't seem to get any of my view controllers (even the window's root view
controller) to participate, even if I override acceptsFirstResponder to return
true.
2) What happens when I have sibling view controllers (e.g. in a split view
controller)? I'd like all of them to participate, if they can.
I can, of course, push all that stuff up to the root view controller, but that
makes me do things like subclass NSSplitViewController.
The whole thing seems cumbersome, at best. What am I missing?
Thanks,
--
Rick Mann
email@hidden
_______________________________________________
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