2 ms·
Yes, which is also where the odd coordinate system and so on descend from... the annoying thing is it still works fine, but it's too large of a surface to enjoy
by Klonoar 7y ago
Yes, which is also where the odd coordinate system and so on descend from... the annoying thing is it still works fine, but it's too large of a surface to enjoy developing in without proper docs and so on.
- mpweiher 7y agoErr...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.