isFlipped??


Dave
 

Hi,

I’m trying to find some docs on isFlipped. When I search for it in the XCode docs, it only brings up a reference in NSImage and that’s deprecated.

I’m overriding this on some Classes on the Mac, but they are common to iOS and I’m wondering if returning YES, will flip the iOS coordinate system making it bottom left?

Thanks in advance for the help.

Cheers
Dave


Ben Kennedy
 

On 01 Sep 2017, at 6:44 am, Dave <dave@...> wrote:

I’m trying to find some docs on isFlipped. When I search for it in the XCode docs, it only brings up a reference in NSImage and that’s deprecated.
https://developer.apple.com/documentation/appkit/nsview/1483532-isflipped

I’m overriding this on some Classes on the Mac, but they are common to iOS and I’m wondering if returning YES, will flip the iOS coordinate system making it bottom left?
No, of course not. `isFlipped` does not exist on UIView.

-b


Jack Brindle
 

It is actually the property flipped on NSView. isFlipped is the getter function.

The doc says: "If you want your view to use a flipped coordinate system, override this property and return YES.”


I use Dash for viewing docs. It still provides the best viewing experience I have found since Apple started changing
their document system around Xcode 4.

Hope this helps!

- Jack

On Sep 1, 2017, at 6:44 AM, Dave <dave@...> wrote:

Hi,

I’m trying to find some docs on isFlipped. When I search for it in the XCode docs, it only brings up a reference in NSImage and that’s deprecated.

I’m overriding this on some Classes on the Mac, but they are common to iOS and I’m wondering if returning YES, will flip the iOS coordinate system making it bottom left?

Thanks in advance for the help.

Cheers
Dave