The main content view controller for the window.
The value of this property provides the content view of the window. Setting this value removes the existing value of
contentView and makes the
contentViewController.view the main content view for the window. By default, the value of this property is
The content view controller controls only the
contentView object, and not the title of the window. The window title can easily be bound to the
contentViewController object using code such as:
[window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting
contentViewController causes the window to resize based on the current size of the
contentViewController; to restrict the size of the window, use Auto Layout (note that the value of this property is encoded in the NIB). Directly assigning a
contentView value clears out the root view controller.
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.
The window’s content view, the highest accessible
NSView object in the window’s view hierarchy.
A Boolean value that indicates whether the window can be hidden when its application becomes hidden (during execution of the
A Boolean value that indicates whether the window is on the currently active space.
A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive.
A Boolean value that indicates whether the window is opaque.
A Boolean value that indicates whether the window has a shadow.
Invalidates the window shadow so that it is recomputed based on the current window shape.