depthLimit
The depth limit of the window.
Declaration
var depthLimit: NSWindow.Depth { get set }Discussion
The value of this property can be examined with the Application Kit functions isPlanar, colorSpaceName, bitsPerSample, and bitsPerPixel. In addition, the NSBestDepth function provides the best depth limit based on a set of parameters.
Setting this property to 0 sets the depth limit to the window’s default depth limit. A depth limit of 0 can be useful for reverting a window object to its initial depth. You can also use one of the explicit bit depths defined in Explicit Window Depth Limits (NSWindow.Depth.twentyfourBitRGB is the default).