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 manager strange behavior



Does the DragRef have the same value for both sets of receive calls? Perhaps a second drag is being accidentally created after the first drop. It would be interesting if you could identify the full backtraces for the receive calls.


On Oct 23, 2007, at 10:05 AM, Yaron Tadmor wrote:

Hi,

I installed a track and a receive handler for drag and drop support.

The track handler simply redraws some part of the window to let the user know where the drag is going to fall, and returns noErr.

The receive handler loads the image from a file that was dragged and adds it to the window, then returns noErr (an error is returned if its not an image file).

 

In most situations the drag works perfectly fine.

However, when the track handler takes a little more time, a strange thing happens. My receive handler gets called twice!

Tracing the code I added printouts in both track and receive handlers start and end, and I get the following print:

enter track

end track

enter track

end track

enter receive

end receive

enter track

end track

enter track

end track

enter receive

end receive

enter track

end track

enter track

end track


Im not really sure what is going on, but it seems like when the release happens while in the track functions, I get 2 calls to receive.

Is this a known issue? Has anyone seen this?

Thanx

Yaron Tadmor


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

This email sent to email@hidden

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

This email sent to email@hidden

References: 
 >drag manager strange behavior (From: "Yaron Tadmor" <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.