• 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: Dragging CALayer in an event loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging CALayer in an event loop


  • Subject: Re: Dragging CALayer in an event loop
  • From: Seth Willits <email@hidden>
  • Date: Mon, 17 Dec 2012 15:24:59 -0800

On Dec 17, 2012, at 2:15 AM, Graham Cox wrote:

> When I drag a CALayer, it does not follow the mouse but snaps to its final location after I exit the loop. I've tried forcing the view to redisplay within the loop, etc but nothing works. How can I do this?

Use [CATransaction setDisableActions:YES]; inside the transaction. I don't think the animation duration being 0 has the exact same effect.



--
Seth Willits


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Dragging CALayer in an event loop (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSOpenPanel runModal on a dispatch
  • Next by Date: Re: NSOpenPanel runModal on a dispatch
  • Previous by thread: Re: Dragging CALayer in an event loop
  • Next by thread: Re: Dragging CALayer in an event loop
  • Index(es):
    • Date
    • Thread