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

Properties

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
drawers

The collection of drawers associated with the window.

Deprecated
showsResizeIndicator

A Boolean value that indicates whether the window’s resize indicator is visible.

Deprecated
flushWindowDisabled

A Boolean value that indicates whether the window’s flushing ability is disabled.

Deprecated
autodisplay

A Boolean value that indicates whether the window automatically displays views that need to be displayed.

Deprecated
graphicsContext

The graphics context associated with the window for the current thread.

Deprecated