Would it be OK to override NSView's _wantsKeyDownForEvent?
Leonid Romanov
leonid.romanov at oracle.com
Wed Sep 5 06:11:36 PDT 2012
I see… I hoped there would be some Apple provided tool to check it locally. I don't want to put a burden of finding out whether Apple considers it to be a private API to JDK users.
On Sep 5, 2012, at 3:13 AM, Scott Kovatch <scott.kovatch at oracle.com> wrote:
>
> 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