• 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: 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


  • Prev by Date: Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)
  • Next by Date: Re: NSOpenPanel runModal on a dispatch
  • Previous by thread: Re: Dragging CALayer in an event loop
  • Next by thread: Re: Property Declared in a Category and Sent to id
  • Index(es):
    • Date
    • Thread