Cocoa coordinates are all 0,0 based. If you have a reproducible test case that 
says otherwise, please file a radar and attach it.

-raleigh


On Jun 25, 2011, at 7:59 AM, Richard Somers wrote:

> The Cocoa Drawing Guide states "Cocoa event objects return y coordinate 
> values that are 1-based instead of 0-based. Thus, a mouse click on the bottom 
> left corner of a window or view would yield the point (0, 1) in Cocoa and not 
> (0, 0). Only y-coordinates are 1-based."
> 
> Why are the y-coordianate values of Cocoa event objects 1-based?
> 
> Do most developers simply subtract 1.0 from the y-coordianate value obtained 
> from an event object to make it 0-based before using the x-y-coordinate 
> values?
> 
> --Richard
> 
> _______________________________________________
> 
> 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/ledet%40apple.com
> 
> This email sent to le...@apple.com

_______________________________________________

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