• 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 make my NSViewControllers participate in responder chain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to make my NSViewControllers participate in responder chain?
      • From: Richard Charles <email@hidden>
  • Prev by Date: Re: Scrolling differences when using Trackpad or Mouse-Wheel
  • Next by Date: Re: How to make my NSViewControllers participate in responder chain?
  • Previous by thread: Launching main app from share extension.
  • Next by thread: Re: How to make my NSViewControllers participate in responder chain?
  • Index(es):
    • Date
    • Thread