How to add NSViewController to a responder chain?

后端 未结 4 1985
谎友^
谎友^ 2020-12-05 15:27

I\'m having hard time understanding and finding info about how to make NSViewController accept key and mouse events. I read somewhere that in order to register these events

4条回答
  •  醉酒成梦
    2020-12-05 16:19

    Manually patching in the NSViewController into the responder chain isn't necessary anymore as of OS X 10.10 Yosemite. According to WWDC '14, "they're automatically wired up in the responder chain right after their view."

提交回复
热议问题