Would it be OK to override NSView's _wantsKeyDownForEvent?

Leonid Romanov leonid.romanov at oracle.com
Tue Sep 4 12:10:34 PDT 2012

Overriding _wantsKeyDownForEvent to return YES would give us key down events for Ctrl-Tab and Ctrl-Esc (otherwise the only way to receive them is to override performKeyEquivalent). This, in turn, would allow me to simplify our code a bit.
However, I'm worried whether overriding  _wantsKeyDownForEvent would be considered as Private APIs usage, which we obviously want to avoid.


More information about the macosx-port-dev mailing list