hitTest: On Moving CALayer
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