Re: Hitting Layers
Re: Hitting Layers
- Subject: Re: Hitting Layers
- From: Matt Neuburg <email@hidden>
- Date: Sat, 02 Oct 2010 06:30:13 -0700
- Thread-topic: Hitting Layers
On Thu, 30 Sep 2010 20:53:56 -0700, Curious Yogurt
<email@hidden> said:
>around. I'm wondering whether I need to modify the first line of the method
>(NSPoint translated = [[gameController window] convertScreenToBase:mouseloc];)
>when in fullscreen mode?
I'm wondering that too. CALayer's hitTest requires a point in *superlayer*
coordinates. So I'm wondering if you're getting that wrong (as people often
do, because it's so surprising), and maybe there's something about how
you're obtaining mouseloc (your original point) that masks the issue when
you're not in fullscreen mode. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings
_______________________________________________
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