How to make a custom NSView IBActions callable from menu items?

49 Views Asked by At

I have a NSViewController that adds a custom NSView as a subview to the view controllers view. I would like to make the IBAction-methods of that custom view callable thru the First Responder object but the menu items that are wired to the corresponding IBActions of the custom view are always disabled.

I suspect that the reason is that the custom NSView is not added automatically to the responder chain. What should I do, as adding the exact same IBActions to my view controller just to call the same IBActions in the custom NSView is not very elegant?

0

There are 0 best solutions below