• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Avoiding flicker when dropping in a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Avoiding flicker when dropping in a view
      • From: Gregg Witmer <email@hidden>
References: 
 >Avoiding flicker when dropping in a view (From: Serge Meynard <email@hidden>)
 >Re: Avoiding flicker when dropping in a view (From: Serge Meynard <email@hidden>)
 >Re: Avoiding flicker when dropping in a view (From: Gregg Witmer <email@hidden>)

  • Prev by Date: Re: Wait for NSTask to finish
  • Next by Date: ZeroLink -lm
  • Previous by thread: Re: Avoiding flicker when dropping in a view
  • Next by thread: Re: Avoiding flicker when dropping in a view
  • Index(es):
    • Date
    • Thread