---
title: cglContextObj
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsopenglcontext/cglcontextobj
---

# cglContextObj

Returns the low-level, platform-specific Core OpenGL (CGL) context object represented by the receiver.

## Declaration

```swift
var cglContextObj: CGLContextObj? { get }
```

## Return Value

Return Value A pointer to the CGLContextObj data type represented by the receiver.
