| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
At 11:21 AM -0700 11/25/2002, Doug Zwick wrote:_______________________________________________GetGlobalMouse may or may not work with Java 1.4.1 due to Java 1.4.1
switching over from Carbon to Cocoa. If not you'll need to write a
"C callable wrapper function" for the JNI native method to call, which
in turn will make the appropriate Cocoa call. I haven't tracked down
what Cocoa call would be appropriate yet. Hopefully GetGlobalMouse will
continue to work with 1.4.1.
A quick glance leads me to guess that [[NSCursor currentCursor] hotSpot] will return an NSPoint for the current mouse location.
For what it's worth, though, GetGlobalMouse might continue to work. If you decompile it you'll see that the only functions it calls are two private Core Graphics APIs, so it shouldn't be affected by the rest of Carbon. Of course, even if it works today, that's no guarantee that any future implementation of GetGlobalMouse will work.
-Eric
--
Eric Albert email@hidden
http://rescomp.stanford.edu/~ejalbert/
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: cursor position (From: Eric Albert <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.