Retina Detection Q.

Hi,

I have a 15" MBP with Retina display and I can’t seem to find the correct results from my Xojo Cocoa declare to recognize it. I am supposed to return a value of 2 for Retina as I have read on the XOjo Blog and on Apple’s web site. I always get 1 even though I have a retina display.

Any advice would be appreciated as I am just venturing into the details of Retina over the last few days.

Thank you.

  Declare Function BackingScaleFactor Lib "AppKit" Selector "backingScaleFactor" (target As WindowPtr) As Double
  Return BackingScaleFactor(Self)

Sam answers this question in this thread I just found.

https://forum.xojo.com/4662-retinafying-my-app/0