Page 1 of 1
How to know if a standalone is running on Retina display?
Posted: Tue Apr 02, 2013 11:38 am
by Mag
Under iOS it's easy, but I can't find this information on documentation about OS X.
Re: How to know if a standalone is running on Retina display
Posted: Tue Apr 02, 2013 1:04 pm
by shaosean
You would need an external written.. This should help you with what you need to know about the underlying code for the external..
http://lists.apple.com/archives/carbon- ... 00008.html
Re: How to know if a standalone is running on Retina display
Posted: Tue Apr 02, 2013 1:19 pm
by Mag
Wow! I didn't thought a such complicated thing... maybe if it possible to infer from things like the size of a button or other?
Re: How to know if a standalone is running on Retina display
Posted: Mon May 06, 2013 1:00 am
by Mag
News about this topic?
PS
Sounds strange that there is not a way for LiveCode to know if the display on OS X is retina or not...

Re: How to know if a standalone is running on Retina display
Posted: Mon May 06, 2013 8:08 am
by sturgis
I don't have a machine with retina to test on, but if you get the screenrect does that give you the information you need?
Re: How to know if a standalone is running on Retina display
Posted: Thu May 09, 2013 2:42 pm
by Mag
Thanks. This could be an interesting way, but this could not be so reliable, what if the user has an external display with this resolution for example?
Re: How to know if a standalone is running on Retina display
Posted: Thu May 09, 2013 3:03 pm
by sturgis
Hmm I guess it depends. If you just want to use resolution to determine how to draw the screen does it matter?
Of course if the second screen is being used as an additional monitor rather than the only monitor "the screenrects" gives a cr delimited list of both monitors, primary display first I believe.
Hard for me to know how to deal with it without the hardware unfortunately so my apologies if i'm way off base.
Re: How to know if a standalone is running on Retina display
Posted: Thu May 09, 2013 3:15 pm
by Mag
Thank you I really appreciate your help, maybe it could lead to a solution.
I wrote wrong, what I mean is that for example the primary monitor of a desktop Mac could have that resolution and not be retina...
I need this info primarely to know if I need to use standard images or retina ones (@2x).
Re: How to know if a standalone is running on Retina display
Posted: Sat Jul 27, 2013 6:13 am
by shaosean
If someone has a Mac with a Retina display and is willing to do a quick test, I think I may have an external that will let you know if the window is being drawn scaled up or not..
< support AT shaosean DOT tk >
Re: How to know if a standalone is running on Retina display
Posted: Sat Jul 27, 2013 6:29 am
by Simon
Isn't this the news from the newsletter:
http://newsletters.livecode.com/july/is ... mi=9747099
The aim of this project is to take away the need to LiveCode developers to do extra work when creating an app that is required to run on devices with different screen densities
LiveCode can now display a stack at any scale on Mac and iOS!
Admittedly, probably not as fast as shaosean can release it.
Simon
Re: How to know if a standalone is running on Retina display
Posted: Sat Jul 27, 2013 6:35 am
by shaosean
Well, this is just to test if the window is being displayed scaled or not.. There are other features to allow for drawing an image at the right scale, but would require using NSImages as they have automatic handling of using the proper external file (or at least that's what the docs say

)
Re: How to know if a standalone is running on Retina display
Posted: Tue Aug 06, 2013 5:40 pm
by shaosean
Apparently no-one is developing on a Retina display..