Trying to get rid of deprecated functions in CRobot.m

Mike Swingler swingler at apple.com
Tue Sep 6 08:35:55 PDT 2011


On Sep 6, 2011, at 8:23 AM, Leonid Romanov wrote:

> Hello,
> I'm a new guy working on OS X port and I've been assigned to fix MACOSX_PORT-144 (http://java.net/jira/browse/MACOSX_PORT-144) . While I'm here I'd like to to replace deprecated CG function calls in CRobot.m with recommended ones.  There is one function, though, for which I can't figure out the correct replacement. It's CGEnableEventStateCombining().  Apple docs say that I should use  Quartz events and Quartz event sources, but it doesn't say how. I'm kinda lost here and would appreciate any help.

I'm not sure why any of that work is being done in the CRobot_initRobot() call. Does the Robot work without it?

I don't think you need to protect the Robot against the user actually holding down real keys.

Just a thought,
Mike Swingler
Java Engineering
Apple Inc.



More information about the macosx-port-dev mailing list