Instance Property

deviceDescription

The device dictionary for the screen.

Declaration

@property(readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;

Discussion

This is a dictionary containing the attributes of the receiver's screen. For the list of keys you can use to retrieve values from the returned dictionary, see Display Device—Descriptions.

In addition to the display device constants described in NSWindow, you can also retrieve the CGDirectDisplayID value associated with the screen from this dictionary. To access this value, specify the Objective-C string @"NSScreenNumber" as the key when requesting the item from the dictionary. The value associated with this key is an NSNumber object containing the display ID value. This string is only valid when used as a key for the dictionary returned by this method.

See Also

Getting Screen Information

depth

The current bit depth and colorspace information of the screen.

frame

The dimensions and location of the screen.

supportedWindowDepths

A zero-terminated array of the window depths supported by the screen.

NSDeviceDescriptionKey

These constants are the keys for device description dictionaries used by deviceDescription.

- userSpaceScaleFactor

Returns the scaling factor from user space to device space on the screen.

Deprecated
visibleFrame

The current location and dimensions of the visible screen.

colorSpace

The color space of the screen.

- canRepresentDisplayGamut:

A Boolean value indicating whether the color space of the screen is capable of representing the specified display gamut.

screensHaveSeparateSpaces

Returns a Boolean value indicating whether each screen can have its own set of spaces.