bestRepresentationForDevice:
Returns the best representation for the device with the specified characteristics.
Declaration
- (NSImageRep *) bestRepresentationForDevice:(NSDictionary *) deviceDescription;Parameters
- deviceDescription:
A dictionary of attributes for the specified device, or
nilto specify the current device. For a list of dictionary keys and values appropriate to display and print devices, see the constants in Nsscreen.
Return Value
The image representation that most closely matches the specified criteria.
Discussion
If deviceDescription is nil, this method uses the attributes of the device on which the content is to be drawn.
See Also
Related Documentation
Instance Methods
lockFocus()lockFocusFlipped(_:)unlockFocus()init(iconRef:)lockFocusOnRepresentation:compositeToPoint:operation:compositeToPoint:fromRect:operation:compositeToPoint:fromRect:operation:fraction:compositeToPoint:operation:fraction:dissolveToPoint:fraction:dissolveToPoint:fromRect:fraction:setScalesWhenResized:scalesWhenResizedsetDataRetained:isDataRetained