The window’s color space.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
var colorSpace: NSColor Space? { get set }
Discussion
The value of this property is nil
if the window does not have a backing store, and is off-screen.
The window’s color space.
SDK
Framework
var colorSpace: NSColor Space? { get set }
The value of this property is nil
if the window does not have a backing store, and is off-screen.
func toggle Full Screen(Any?)
Takes the window into or out of fullscreen mode,
var works When Modal: Bool
A Boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally.
var alpha Value: CGFloat
The window’s alpha value.
var background Color: NSColor!
The color of the window’s background.
var content View: NSView?
The window’s content view, the highest accessible NSView
object in the window’s view hierarchy.
var content View Controller: NSView Controller?
The main content view controller for the window.
var can Hide: Bool
A Boolean value that indicates whether the window can be hidden when its application becomes hidden (during execution of the NSApplication
hide(_:)
method).
var is On Active Space: Bool
A Boolean value that indicates whether the window is on the currently active space.
var hides On Deactivate: Bool
A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive.
var collection Behavior: NSWindow .Collection Behavior
A value that identifies the window’s behavior in window collections.
var is Opaque: Bool
A Boolean value that indicates whether the window is opaque.
var has Shadow: Bool
A Boolean value that indicates whether the window has a shadow.
func invalidate Shadow()
Invalidates the window shadow so that it is recomputed based on the current window shape.
func autorecalculates Content Border Thickness(for: NSRect Edge) -> Bool
Indicates whether the window calculates the thickness of a given border automatically.
func set Autorecalculates Content Border Thickness(Bool, for: NSRect Edge)
Specifies whether the window calculates the thickness of a given border automatically.
func content Border Thickness(for: NSRect Edge) -> CGFloat
Indicates the thickness of a given border of the window.
func set Content Border Thickness(CGFloat, for: NSRect Edge)
Specifies the thickness of a given border of the window.
var delegate: NSWindow Delegate?
The window’s delegate.
var prevents Application Termination When Modal: Bool
A Boolean value that indicates whether the window prevents application termination when modal.