Contents

setCachedSeparately:

Sets whether each image representation uses a separate offscreen window to cache its contents.

Declaration

- (void) setCachedSeparately:(BOOL) flag;

Parameters

  • flag:

    True if you want each of the receiver’s image representation objects to use a separate offscreen window for caching; otherwise, False.

Discussion

If you specify false, a representation can be cached together with other images, though in practice it might not be. This method does not invalidate any existing caches.

If you plan to resize an NSImage object frequently, it is usually more efficient to cache its representations separately. In some situations, you might also want to enable separate caching if you plan to use the compositeToPoint:fromRect:operation: or compositeToPoint:fromRect:operation:fraction:methods to draw the image.

See Also

Related Documentation

Instance Methods