setCachedSeparately:
Sets whether each image representation uses a separate offscreen window to cache its contents.
Declaration
- (void) setCachedSeparately:(BOOL) flag;Parameters
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
lockFocus()lockFocusFlipped(_:)unlockFocus()init(iconRef:)lockFocusOnRepresentation:bestRepresentationForDevice:compositeToPoint:operation:compositeToPoint:fromRect:operation:compositeToPoint:fromRect:operation:fraction:compositeToPoint:operation:fraction:dissolveToPoint:fraction:dissolveToPoint:fromRect:fraction:setScalesWhenResized:scalesWhenResizedsetDataRetained: