<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDeviceDescriptionKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSDeviceDescriptionKey"
  },
  "title" : "NSDeviceDescriptionKey"
}
-->

# NSDeviceDescriptionKey

These constants are the keys for device description dictionaries.

```
struct NSDeviceDescriptionKey
```

## Topics

### Type Properties

[`static let bitsPerSample: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/bitsPerSample)

The corresponding value is an `NSNumber` object containing an integer that gives the bit depth of the window’s raster image (2-bit, 8-bit, and so forth).

[`static let colorSpaceName: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/colorSpaceName)

The corresponding value is an `NSString` object giving the name of the window’s color space.

[`static let isPrinter: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/isPrinter)

If there is a corresponding value, this indicates that the display device is a printer.

[`static let isScreen: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/isScreen)

If there is a corresponding value, this indicates that the display device is a screen.

[`static let resolution: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/resolution)

The corresponding value is an `NSValue` object containing a value of type `NSSize` that describes the window’s raster resolution in dots per inch (dpi).

[`static let size: NSDeviceDescriptionKey`](/documentation/AppKit/NSDeviceDescriptionKey/size)

The corresponding value is an `NSValue` object containing a value of type `NSSize` that gives the size of the window’s frame rectangle.

### Initializers

[`init(String)`](/documentation/AppKit/NSDeviceDescriptionKey/init(_:))

[`init(rawValue: String)`](/documentation/AppKit/NSDeviceDescriptionKey/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)