3 ms·
Err...the "odd" coordinate system is the Cartesian coordinate system from...math. https://en.wikipedia.org/wiki/Cartesian_coordinate_system https://en.wikipedi
by mpweiher 7y ago
Err...the "odd" coordinate system is the Cartesian coordinate system from...math.
https://en.wikipedia.org/wiki/Cartesian_coordinate_system https://en.wikipedia.org/wiki/Cartesian_coordinate_system
It is also the coordinate system of the graphics model(s) underlying all this: Postscript, PDF and CoreGraphics.
As UIKit shows, it is fairly easy to transform the coordinate system if you want a different one.
- saagarjha 7y agoPlus there's also NSView.isFlipped if you want the UIKit behavior.
- Klonoar 7y agoIt's "odd" because the vast majority of UI libraries use top left, not bottom left. NSView being flippable alone confirms that it's an expected style at this point. Anyone who did middle school math knows it's Cartesian. ;P
- jonhendry18 7y agoNSView has been flippable since the NeXT days.