Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.2 ('Cocoa Fonts')
Instant purchase and download via GumRoad!

FEATURE

Retina, Retina, Retina

How to do Retina the Right Way

Issue: 14.2 (March/April 2016)
Author: Sam Rowlands
Author Bio: Sam is a pixelMancer and codeWeaver at Ohanaware.
Article Description: r> No descri
Article Length (in bytes): 19,013
Starting Page Number: e>
Article Number: 14205
Related Web Link(s):

http://www.ohanaware.com/retinakit/

Excerpt of article text...

Today I want to explain the consequences of doing Retina the right way and the wrong way, and how these affect your application and your end users. Everything in this article is based upon the experience I've gained in creating Retina-compatible applications with Xojo since 2012.

First things first, so we get this clear: points <> pixels. All drawing and laying out in OS X is done via points (which are a constant 72 dots-per-inch). When the actual drawing takes place, the OS will handle the conversion to the output device.

There's A Wrong Way to Do Retina?

Like the old phrase, "There's more than one way to skin a cat" (which raises a lot of questions about our ancestors), in programming there is always more than one way to implement a function. Making a Retina-compatible Xojo application is no exception.

When Retina Macs first appeared, people (myself included) started using a declare to figure out if they should be doing anything different. That declare is:

...End of Excerpt. Please purchase the magazine to read the full article.