<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenGLCPSurfaceOrder",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSOpenGLCPSurfaceOrder"
  },
  "title" : "NSOpenGLCPSurfaceOrder"
}
-->

# NSOpenGLCPSurfaceOrder

Get or set the surface order.

```
static const NSOpenGLContextParameter NSOpenGLCPSurfaceOrder;
```

## Discussion

If the surface order is set to 1 (the default), the order is above the window (default). If the value is –1, the order is below the window.

---

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)