---
title: graphicsContext
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/graphicscontext
---

# graphicsContext

The graphics context associated with the window for the current thread.

## Declaration

```swift
var graphicsContext: NSGraphicsContext? { get }
```

## See Also

### Properties

- [backingLocation](appkit/nswindow/backinglocation-swift.property.md)
- [preferredBackingLocation](appkit/nswindow/preferredbackinglocation.md)
- [isOneShot](appkit/nswindow/isoneshot.md)
- [drawers](appkit/nswindow/drawers.md)
- [showsResizeIndicator](appkit/nswindow/showsresizeindicator.md)
- [isFlushWindowDisabled](appkit/nswindow/isflushwindowdisabled.md)
- [isAutodisplay](appkit/nswindow/isautodisplay.md)
- [windowRef](appkit/nswindow/windowref.md)
