Re: Mouse position from NSEvent starts at (0, 1) ?
Re: Mouse position from NSEvent starts at (0, 1) ?
- Subject: Re: Mouse position from NSEvent starts at (0, 1) ?
- From: Manfred Schwind <email@hidden>
- Date: Mon, 21 May 2007 20:50:10 +0200
But - I think for historical reasons - the mouse location is (in
most cases) rounded to integer values.
But mouse coordinates are floats, so they are not always on a pixel.
Yes, that's the reason why I wrote "in most cases".
E.g. when I use the zooming feature of Mac OS X (available through
"Universal Access" in the System Preferences), I get fractions for
the mouse coordinates. Most probably the upcoming resolution
independency will also produce fractions for the mouse coordinates.
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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