Instance Method

useOptimizedDrawing:

Specifies whether the window is to optimize focusing and drawing when displaying its views.

Declaration

- (void)useOptimizedDrawing:(BOOL)flag;

Parameters

flag

If YES, the window will optimize focusing and drawing for its views; if NO, it will not, in which case, the window does not preserve the Z-ordering of overlapping views when an object explicitly sends lockFocus to a view and draws directly to it, instead of using the AppKit standard display mechanism.

Discussion

The optimizations may prevent sibling subviews from being displayed in the correct order—which matters only if the subviews overlap. You should always set flag to YES when there are no overlapping subviews within the window. The default is NO.

See Also

Methods

- 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
- enableFlushWindow

Reenables the flushWindow method for the window after it was disabled through a previous disableFlushWindow message.

Deprecated
- disableFlushWindow

Disables the flushWindow method for the window.

Deprecated
- flushWindow

Flushes the window’s offscreen buffer to the screen if the window is buffered and flushing is enabled.

Deprecated
- flushWindowIfNeeded

Flushes the window’s offscreen buffer to the screen if flushing is enabled and if the last flushWindow message had no effect because flushing was disabled.

Deprecated
+ menuChanged:

This method does nothing; it is here for backward compatibility.

Deprecated
- cacheImageInRect:

Stores the window’s raster image from a given rectangle expressed in the window’s base coordinate system.

Deprecated
- restoreCachedImage

Splices the window’s cached image rectangles, if any, back into its raster image (and buffer if it has one), undoing the effect of any drawing performed within those areas since they were established using cacheImageInRect:.

Deprecated
- discardCachedImage

Discards all of the window’s cached image rectangles.

Deprecated
- convertBaseToScreen:

Converts a given point from the window’s base coordinate system to the screen coordinate system.

Deprecated
- convertScreenToBase:

Converts a given point from the screen coordinate system to the window’s base coordinate system.

Deprecated
- userSpaceScaleFactor

Returns the scale factor applied to the window.

Deprecated