Would it be OK to override NSView's _wantsKeyDownForEvent?
Scott Kovatch
scott.kovatch at oracle.com
Tue Sep 4 16:13:21 PDT 2012
On Sep 4, 2012, at 12:10 PM, Leonid Romanov <leonid.romanov at oracle.com> wrote:
> Hello,
> 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.
The only way we'll know for sure is to submit something and see what happens.
Since you want to override it, as opposed to calling it, we might be on more solid ground. The private APIs we've had to deal with so far involved explicitly calling functions in CoreGraphics.
-- Scott K.
More information about the macosx-port-dev
mailing list