Re: Avoiding flicker when dropping in a view
Re: Avoiding flicker when dropping in a view
- Subject: Re: Avoiding flicker when dropping in a view
- From: Serge Meynard <email@hidden>
- Date: Wed, 16 Mar 2005 11:47:07 -0500
When I start dragging a selected object, I stop displaying it in my
drawRect:
method and let the drag-and-drop system handle drawing it in overlay.
Since you are dragging within the same view, you might do better to
not use the overlay or any drag callbacks.
Create an event loop in the view's -mouseDown: and update the object
location with the -mouseDragged: events. When you get the -mouseUp:
you are done.
Gregg
I'm not only dragging within the same view; I'm also dragging between
views in separate windows. I know I could write my own replacement
drag-and-drop code, but that's not the idea; I want to find a way to
make the existing code work without flicker. I hate coding stuff when
it's already been done (quite well) by Cocoa.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden