Re: How to detect a Retina Mac
Re: How to detect a Retina Mac
- Subject: Re: How to detect a Retina Mac
- From: Simone Tellini <email@hidden>
- Date: Mon, 19 Aug 2013 09:10:49 +0200
Il giorno 19/ago/2013, alle ore 09:01, "Gerriet M. Denkmann" <email@hidden> ha scritto:
>
> On 19 Aug 2013, at 06:41, Marcel Weiher <email@hidden> wrote:
[...]
> I also tried (before [image lockFocus]:
> NSGraphicsContext *bitmapContext = [ NSGraphicsContext graphicsContextWithBitmapImageRep: imageRep ];
> [NSGraphicsContext setCurrentContext: bitmapContext ];
> But after [image lockFocus] the currentContext changes to: NSSnapshotBitmapGraphicsContext.
>
in this case, you should not use -lockFocus: since you have already created and set the new context, you just need to start drawing
--
Simone Tellini
http://tellini.info
_______________________________________________
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