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 setDisableAction
On Dec 17, 2012, at 2:15 AM, Graham Cox 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 l
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, "cocoa-dev-requ...@lists.apple.com"
wrote:
> I
OK, this is a bit weird, but I found a simple solution. If I add
NSOtherMouseDraggedMask to my list of masks, it works fine, even though in the
body of the code I now only actually move the layers for the NSLeftMouseDragged
event type! In addition, the docs for NSOtherMouseDraggedEvent suggest i
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?
- (BOOL)