Converts a size from another view’s coordinate system to that of the view.
- macOS 10.0+
The size (width and height) in
a's coordinate system.
The view with
ain its coordinate system. Both
aand the view must belong to the same
NSWindowobject, and that window must not be
nil, this method converts from window coordinates instead.
The converted size, as an
NSSize values are always forced to have positive a width and height.
You can also use this method to get a view’s current magnification or zoom level, if it’s been changed from the default scale. Specifically, if you convert a known size from the window's base coordinate space to that of
a, the result is the current zoom level.