Re: How to detect a Retina Mac
Re: How to detect a Retina Mac
- Subject: Re: How to detect a Retina Mac
- From: Graham Cox <email@hidden>
- Date: Mon, 19 Aug 2013 13:29:30 +0200
On 19/08/2013, at 12:56 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
> NSGraphicsContext *originalContext = [NSGraphicsContext currentContext];
> ... do stuff ...
> [NSGraphicsContext setCurrentContext: originalContext ];
or more simply:
[NSGraphicsContext saveGraphicsState];
... do stuff ...
[NSGraphicsContext restoreGraphicsState];
this saves the current context as well as its state
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden