How to know if a standalone is running on Retina display?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to know if a standalone is running on Retina display?
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
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
http://lists.apple.com/archives/carbon- ... 00008.html
Re: How to know if a standalone is running on Retina display
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
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...
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
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
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
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.
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
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).
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
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 >
< support AT shaosean DOT tk >
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: How to know if a standalone is running on Retina display
Isn't this the news from the newsletter:
http://newsletters.livecode.com/july/is ... mi=9747099
Simon
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
Admittedly, probably not as fast as shaosean can release it.LiveCode can now display a stack at any scale on Mac and iOS!
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: How to know if a standalone is running on Retina display
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
Apparently no-one is developing on a Retina display..