Instance Property

oneShot

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

Declaration

@property(getter=isOneShot) BOOL oneShot;

Discussion

When the value of this property is YES, the window’s window device is freed when it’s removed from the screen list (that is, hidden) and another is created when it’s returned to the screen. When the value is NO, the window device is reused. Freeing the window device when it’s removed from the screen list can result in memory savings and performance improvement for window objects that don’t take long to display. Doing so is particularly appropriate for window objects the user might use once or twice, but not display continually.

See Also

Accessing Window Information

defaultDepthLimit

Returns the default depth limit for instances of NSWindow.

windowNumber

The window number of the window’s window device.

+ windowNumbersWithOptions:

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

- gState

Returns the window’s graphics state object.

Deprecated
- canStoreColor

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

Deprecated
deviceDescription

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

NSDeviceDescriptionKey

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

canBecomeVisibleWithoutLogin

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

sharingType

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

backingType

The window’s backing store type.

backingLocation

The location of the window’s backing store.

Deprecated
preferredBackingLocation

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

Deprecated
depthLimit

The depth limit of the window.

hasDynamicDepthLimit

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