The device dictionary for the screen.
- macOS 10.0+
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
CGDirect value associated with the screen from this dictionary. To access this value, specify the Objective-C string
@"NSScreen 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.