Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop Problems



Tom Condon <email@hidden> wrote:

>if fixed with the following code:
>
> Point locPt = new Point(dsde.getLocation());
>
> if (isMacintosh)

I recommend hooking up your isMacintosh boolean so it's set from a
configurable property, or at least overridable by a property. When Apple
fixes the bug, you can then disable your work-around in the field, perhaps
by looking for a specific range of JVM versions where it occurs. Otherwise
you have to issue a bug-fix to fix Apple's bug-fix.

I also recommend NOT using your boolean as a generalized "this platform is
Mac OS" indicator. Otherwise you tie all kinds of other workarounds (or
even non-workarounds) to what should be a specific workaround for a
specific bug.

No workaround or bug-fix should make your code more brittle or less adaptable.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




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.