The documentation says that the first parameter is
"The rectangle in which to draw the image, specified in the current coordinate system"
What does it mean? Should I assume the size of that rectangle is in pixels or in points?
The documentation says that the first parameter is
"The rectangle in which to draw the image, specified in the current coordinate system"
What does it mean? Should I assume the size of that rectangle is in pixels or in points?
It is in the coordinate system of the current context.
Quartz graphics contexts define a coordinate system with an initial size and apply additional transforms on it. So you have to know in which context you are drawing and what the current transformation matrix (CTM) is.
When drawing in NSViews the current context is set up in a way that you specify coordinates in point. This is identical to pixels on non-retina displays. The orientation of the y axis depends in the view's flippedness (-[NSView isFlipped]
).