On Dec 8, 2009, at 11:34 AM, Eric E. Dolecki wrote:

> Looks like that method expects a UIView - what's the best way to access the
> CAShapeLayer to know whether or not a user's touched it? Then I'd like to
> constrain drag it.


Are you trying to hit test against the shape layer's path? I'm not certain that 
is trivial. Does the shape layer have an associated view (i.e. did you subclass 
UIView to override +layerClass)? If so you could use that associated view. 
Otherwise you can use the layer's -hitTest: method to determine which layer was 
hit.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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

Reply via email to