Re: CAShapeLayer and touches?
Re: CAShapeLayer and touches?
- Subject: Re: CAShapeLayer and touches?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 9 Dec 2009 09:47:35 -0500
Hmmm - I just tried this and I am getting this warning:
UITouch *touch = [[event allTouches] anyObject];
if( [self.view.layer hitTest:[touch locationInView:self]] == pointerLayer) {
NSLog(@"pointer touched");
}
Incompatible Objective-C types 'struct RadioViewController *", expected
'struct UIView *' when passing argument 1 of 'locationInView' from distinct
Objective-C type.
On Tue, Dec 8, 2009 at 4:28 PM, Eric E. Dolecki <email@hidden> wrote:
> I send to you many thanks.
>
>
> On Tue, Dec 8, 2009 at 4:17 PM, David Duncan <email@hidden>wrote:
>
>> On Dec 8, 2009, at 12:52 PM, Eric E. Dolecki wrote:
>>
>> > Okay - so how would I use the bounds? I thought I tried that in my
>> initial code sample:
>>
>>
>> Your making this too complicated :).
>>
>> if([self.view.layer hitTest:[touch locationInView:self]] == pointLayer]) {
>> // my shape layer got hit
>> }
>> --
>> David Duncan
>> Apple DTS Animation and Printing
>>
>>
>
>
> --
> http://ericd.net
> Interactive design and development
>
--
http://ericd.net
Interactive design and development
_______________________________________________
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