isDataRetained
Returns a Boolean value that incidates whether the image retains its source image data.
Declaration
- (BOOL) isDataRetained;Return Value
true if the image retains its source data; otherwise, false. The default value is false with some exceptions, which are covered in the discussion.
Discussion
For image objects initialized using either the init(byReferencingFile:) or init(byReferencing:) method, this value is true by default. The reason is that for these methods, data retention simply involves retaining the filename or URL.
Data retention increases the memory used by the NSImage object and its image representations.
See Also
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: