NSViewController responder chain integration

NSViewController doesn’t automatically get added to the responder chain. I don’t really know why, I feel like this would be a good place to handle events. I decided I needed this feature and saw a nice solution posted here.

To use: In Interface Builder, open up your nib, set the view’s class to ResponderView, then connect FileOwner to the view’s viewController outlet.

Checkout the gist:
https://gist.github.com/1248654

Advertisements