• 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
hitTest: On Moving CALayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hitTest: On Moving CALayer


  • Subject: hitTest: On Moving CALayer
  • From: "Bridger Maxwell" <email@hidden>
  • Date: Sat, 3 Jan 2009 21:44:08 -0700

Hey,
I am having a difficult time using hittest on a layer containing many
sublayers which are moving. The moving sublayers are SCJammerSignal, a
subclass of CALayer, and are all in a layer named signalLayer. The layers
are moved with an explicit CAKeyframeAnimation which acts on their position.
When I use this code

CALayer* clickedOn = [[signalLayer presentationLayer] hitTest:pointInView];

It always returns a pointer to singalLayer, and prints "expecting model
layer not copy: <SCJammerSignal: 0x17c00d80>" I haven't made any weird
additions to SCJammerSignal, it only has one member variable, a CGColorRef,
and a method for drawing itself. Does anybody know what is going on here?

Thank You,
Bridger Maxwell
_______________________________________________

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: Using the security framework
  • Next by Date: Removing CALayer after Animation
  • Previous by thread: Re: Using the security framework
  • Next by thread: Removing CALayer after Animation
  • Index(es):
    • Date
    • Thread