Okay - so how would I use the bounds? I thought I tried that in my initial code sample:
if( CGRectContainsPoint([*pointerLayer bounds*], [touch locationInView:pointerLayer] )){ or is that part correct and the [touch locationInView:pointerLayer.view] be correct? Thanks, Eric On Tue, Dec 8, 2009 at 3:48 PM, David Duncan <david.dun...@apple.com> wrote: > On Dec 8, 2009, at 12:47 PM, Eric E. Dolecki wrote: > > > Basically if a user touches the shape layer's path (the UI for the > pointer), I'd like the user to be able to slide it left and right. I did not > subclass UIView - I am using a rootLayer and using the path within that. > CAShapeLayers have hitTests? I haven't seen code like that anywhere yet > (Google). Any help appreciated. > > > CAShapeLayer is a subclass of CALayer, and CALayer provides -hitTest:. > However, I'm fairly certain that it is based on the layer's geometry > (position, bounds, transform) rather than its content. > -- > David Duncan > Apple DTS Animation and Printing > > -- http://ericd.net Interactive design and development _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com