Instance Property

deviceDescription

A dictionary containing information about the window’s resolution, such as color, depth, and so on.

Declaration

var deviceDescription: [NSDeviceDescriptionKey : Any] { get }

Discussion

This information is useful for tuning images and colors to the window’s display capabilities. The contents of the dictionary are described in Display Device—Descriptions.

See Also

Accessing Window Information

class var defaultDepthLimit: NSWindow.Depth

Returns the default depth limit for instances of NSWindow.

var windowNumber: Int

The window number of the window’s window device.

class func windowNumbers(options: NSWindow.NumberListOptions) -> [NSNumber]?

Returns the window numbers for all visible windows satisfying the specified options.

func gState() -> Int

Returns the window’s graphics state object.

Deprecated
func canStoreColor() -> Bool

Indicates whether the window has a depth limit that allows it to store color values.

Deprecated
struct NSDeviceDescriptionKey

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

var canBecomeVisibleWithoutLogin: Bool

A Boolean value that indicates whether the window can be displayed at the login window.

var sharingType: NSWindow.SharingType

A Boolean value that indicates the level of access other processes have to the window’s content.

var backingType: NSWindow.BackingStoreType

The window’s backing store type.

var backingLocation: NSWindow.BackingLocation

The location of the window’s backing store.

Deprecated
var preferredBackingLocation: NSWindow.BackingLocation

A Boolean value that indicates the preferred location for the window’s backing store.

Deprecated
var isOneShot: Bool

A Boolean value that indicates whether the window device the window manages is freed when it’s removed from the screen list.

Deprecated
var depthLimit: NSWindow.Depth

The depth limit of the window.

var hasDynamicDepthLimit: Bool

A Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on.