• 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: Gregg Witmer <email@hidden>
  • Date: Wed, 16 Mar 2005 10:32:08 -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
_______________________________________________
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: Serge Meynard <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>)

  • Prev by Date: License info
  • Next by Date: Re: Wait for NSTask to finish
  • 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