Re: Why are the simplest things the hardest?
Re: Why are the simplest things the hardest?
- Subject: Re: Why are the simplest things the hardest?
- From: Richard Charles <email@hidden>
- Date: Sat, 07 Jul 2018 17:50:32 -0600
> On Jul 6, 2018, at 10:55 PM, Rick Mann <email@hidden> wrote:
>
> If I have view commands (like fixed perspectives in a 3D view) in a menu, I
> should be able to implement those on the view controller, don't you think?
It depends if the view controller is in the responder chain for the object in
question.
The documentation indicates that in macOS 10.10 and later, a view controller
does participate in the responder chain.
Cocoa Design Patterns by Buck and Yacktman, Chapter 18 Responder Chain, The
Extended Responder Chain page 223 is a great read on the subject. I can’t find
my book right now but I think they have sample code that will walk the
responder chain, log this to the console, and you can then see exactly what
your responder chain looks like. I find this to be a great debugging tool.
--Richard Charles
_______________________________________________
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