Re: How to Translate iOS UIView Point to Mac NSView
Glenn L. Austin
Mac uses bottom-left for the origin, which is why everything is "flipped in the Y direction".
toggle quoted message
Show quoted text
You *can* do the calculation to move the origin to top-left and scale the transform in the opposite Y direction, but it's probably just as easy to "re-orient" yourself to bottom-left on macOS. --
Glenn L. Austin, Computer Wizard, AustinSoft.com
|
|