I am programmatically creating a NSWindow
and the controls on it.
It seems the origin (0,0) is at the lower left corner. This is strange to me (coming from other GUI toolkits). Is there some flag or so so that I can change this so that the origin is in the left top corner?
On OS X the origin is at the lower left corner. That's true for screen coordinates and view frames. You can override isFlipped:
in an NSView subclass and return YES to make the upper left corner the origin of that view, but I don't think there is a way to do the same for screen coordinates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With