Re: Dragging CALayer in an event loop
Re: Dragging CALayer in an event loop
- Subject: Re: Dragging CALayer in an event loop
- From: Gordon Apple <email@hidden>
- Date: Mon, 17 Dec 2012 10:54:12 -0600
- Thread-topic: Dragging CALayer in an event loop
I would recommend subclassing CALayer and using a notification to update its
position. Without more detail, I canĀ¹t tell you exactly how to do this. I
use movie layers which do track underlying draw objects when I drag them.
On 12/17/12 6:14 AM, "email@hidden"
<email@hidden> wrote:
> I have a very simple piece of code that doesn't behave how I expected it to.
> 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?
_______________________________________________
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