Re: Dragging CALayer in an event loop
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