<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGraphicsContext/AttributeKey/destination",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSGraphicsContextDestinationAttributeName"
  },
  "title" : "destination"
}
-->

# destination

Specifies the destination.

```
static let destination: NSGraphicsContext.AttributeKey
```

## Discussion

This value can be an instance of [`NSWindow`](/documentation/AppKit/NSWindow) or [`NSBitmapImageRep`](/documentation/AppKit/NSBitmapImageRep) when creating a graphics context.

When determining the type of a graphics context, this value can be an <doc://com.apple.documentation/documentation/Foundation/NSMutableData>, <doc://com.apple.documentation/documentation/Foundation/NSString>, or <doc://com.apple.documentation/documentation/Foundation/NSURL> object.

---

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)