Hoosgot

Send your wishes and desires out into the ether.

Hoosgot header image 2

Only y-coordinates are 1-based

February 8th, 2008 · No Comments

http://www.gusmueller.com/blog/archives/2008/02/only_y-coordinates_are_1-based.html asks Hoosgot,

From Converting from Window to View Coordinates: ”’Important: 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.”’ So my question is: WTF? Why are y-coords

Visit the blog to lend your wisdom, or you can comment below.

Tags: Uncategorized

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment