---
title: context
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsprintoperation/context
---

# context

The graphics context object used for generating output.

## Declaration

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

## Return Value

Return Value The graphics context object used for drawing during the operation.

## See Also

### Managing the Drawing Context

- [createContext()](appkit/nsprintoperation/createcontext().md)
- [destroyContext()](appkit/nsprintoperation/destroycontext().md)
