There is actually, but available on OS X 10.7+. 
Set wantsBestResolutionOpenGLSurface 
<https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/#//apple_ref/occ/instp/NSView/wantsBestResolutionOpenGLSurface>
 to YES. According to Apple, this is the way to opt in to 
retina resolution for OpenGL views. 

Cheers, 
Christian


> On Nov 15, 2015, at 4:41 AM, Vojtěch Meluzín <[email protected]> 
> wrote:
> 
> Thanks but that would be a problem - we are using OpenGL based system based 
> on textures, vectorial graphics etc., pretty complex thing. There's no 
> reasonable API to say "this NSView supports high DPI? + what is current DPI?".
> 
> Vojtech
> 
> 2015-11-14 4:22 GMT+01:00 Paul Davis <[email protected] 
> <mailto:[email protected]>>:
> The basic technique is to stop using pre-rendered images in the GUI for the 
> audiounit. Any pre-rendered image has a predefined resolution, which is 
> either too high for non-retina display or too low for retina.
> 
> On Fri, Nov 13, 2015 at 6:01 PM, Vojtěch Meluzín <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> is there a way to make AudioUnits look good on retina displays? I mean if the 
> host is not "NSHighResolutionCapable", then it is resized, right? But then 
> there is no way to specify that for the plugins themselves. I would assume 
> that logical solution would be to have a flag in each NSView, but that's 
> probably not the case, or is it? Is there another way?
> 
> Cheers!
> Vojtech
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected] 
> <mailto:[email protected]>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/paul%40linuxaudiosystems.com
>  
> <https://lists.apple.com/mailman/options/coreaudio-api/paul%40linuxaudiosystems.com>
> 
> This email sent to [email protected] 
> <mailto:[email protected]>
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/christian%40christianfloisand.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to