Re: transition custom views

2017-08-11 Thread J.E. Schotsman
> On 10 Aug 2017, at 21:03, Quincey Morris > wrote: > > On Aug 10, 2017, at 11:38 , J.E. Schotsman wrote: >> >> No, it’s a xib-based app. > > I think it’s a bit harder, because with a storyboard you can use segues, and > set them up in IB. > > With the proviso that I haven’t tried what I’m

Exact definition of NSView/NSEvent coordinate system origin?

2017-08-11 Thread Sean McBride
Hi all, I'm tying to understand the exact definition of the Cocoa drawing and event coordinate system on macOS. In particular the exact location of 0,0 and subpixel accuracy. I know 0,0 is the bottom-left, but is it: - the centre of the bottom-left pixel? - the bottom-left corner of the bott

Re: Exact definition of NSView/NSEvent coordinate system origin?

2017-08-11 Thread Ken Thomases
On Aug 11, 2017, at 11:38 AM, Sean McBride wrote: > > I'm tying to understand the exact definition of the Cocoa drawing and event > coordinate system on macOS. In particular the exact location of 0,0 and > subpixel accuracy. > > I know 0,0 is the bottom-left, but is it: > - the centre of the

Re: Exact definition of NSView/NSEvent coordinate system origin?

2017-08-11 Thread Sean McBride
On Fri, 11 Aug 2017 11:53:10 -0500, Ken Thomases said: >> I know 0,0 is the bottom-left, but is it: >> - the centre of the bottom-left pixel? >> - the bottom-left corner of the bottom-left pixel? > >It's the bottom-left corner of the bottom-left pixel. Playing around with NSRectFill() that indeed