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: DropTargetAdapter missing events



Mohsan Khan wrote:

>But if I do my drags & drop REALLY fast,
>I get:
>	dragEnter
>	dragEnter
>	dragEnter
>	drop
>
>3 dragEnter???

How fast is "REALLY fast"?  How do you actually accomplish this?  I mean,
what input device do you use, and how do you manipulate it so it goes
really fast?

Is it possible that 2 of the dragEnter's correspond to lost dragExit's?  Or
do you know for sure that they correspond to lost drop events?


What machine is this on?  What CPU speed?  RAM size?  Video card?
I ask about these because all these elements play a role in speed.  RAM
size affects speed because if it's small, your machine will swap to disk,
which really slows things down, often uncontrollably.


>or is some cases just a:
>	dragEnter
>
>where did the dragExit or drop go?
>
>When dragEnter occures a thread starts which has an animation in the
>panel, and this never ends since these is no dragExit or drop event.

How long does your DropReactorHandler take when it receives dragEnter?

I realize you start a thread, but do you also build the thread, or is it
already started and simply waiting for a notify to start animating?

Latency is critical, and if handlers don't have a low return latency, it's
possible that the underlying mechanism that eventually produces drag and
drop Java events will lose information.  If that happens, then the Java
events won't even be created or dispatched.

Also, if the internal state gets confused, then when you drop the object on
the target, the state may not think it's referring to the object you're
hovering over on mouse-up, so it might never even reach the point of
creating a drop event if it believes it's over an unreceptive object.

Or it could be there are bugs in DnD in the version of Mac OS X or Java
you're using.

Can you create a well-isolated test-case, or at least provide more detail?

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



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.