<!--
{
  "availability" : [
    "macOS: 10.7.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/wantsBestResolutionOpenGLSurface",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)wantsBestResolutionOpenGLSurface"
  },
  "title" : "wantsBestResolutionOpenGLSurface"
}
-->

# wantsBestResolutionOpenGLSurface

A Boolean value indicating whether the view wants an OpenGL backing surface with a resolution greater than 1 pixel per point.

```
var wantsBestResolutionOpenGLSurface: Bool { get set }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the view wants a high resolution backing surface or <doc://com.apple.documentation/documentation/Swift/false> if it does not.

## Discussion

This property is relevant only for views bound to an [`NSOpenGLContext`](/documentation/AppKit/NSOpenGLContext) object (including, but not limited to, [`NSOpenGLView`](/documentation/AppKit/NSOpenGLView) objects). Layer-backed views ignore the value in this property and configure their own backing surface at an appropriate resolution.

> Important:
> For applications linked on macOS 10.15 or later, the default value of this property is <doc://com.apple.documentation/documentation/Swift/true>. For applications linked on macOS 10.14 or earlier, the default value of this property is <doc://com.apple.documentation/documentation/Swift/false> to keep binary compatibility.

When this property is <doc://com.apple.documentation/documentation/Swift/false>, the view uses a 1 pixel per point framebuffer regardless of the backing scale factor for the targeted display. When the backing scale factor is greater than `1.0`, the rendered surface contents are also magnified to the appropriate user size.

When this property is <doc://com.apple.documentation/documentation/Swift/true>, AppKit has permission to allocate a higher resolution frame buffer for the view. AppKit uses the backing scale factor and the targeted display to determine whether a higher resolution buffer is appropriate, and it may change the surface resolution when the display mode changes or the view moves to a different display. The view must be able to convert between view units and pixel units when needed. For example, passing the view’s bounds unmodified to the `glViewport` function yields incorrect results at backing scale factors other than `1.0`. You can use the [`convertToBacking(_:)`](/documentation/AppKit/NSView/convertToBacking(_:)-2xx45), [`convertToBacking(_:)`](/documentation/AppKit/NSView/convertToBacking(_:)-3zors), and [`convertToBacking(_:)`](/documentation/AppKit/NSView/convertToBacking(_:)-4ra9y) methods to convert coordinate values to the resolution of the backing store.

To learn more about using OpenGL in your Mac app, see [OpenGL Programming Guide for Mac](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_intro/opengl_intro.html#//apple_ref/doc/uid/TP40001987).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)