Scales the view’s coordinate system so that the unit square scales to the specified dimensions.
- macOS 10.0+
NSSizestructure specifying the new unit size.
For example, a
new of (0.5, 1.0) causes the view’s horizontal coordinates to be halved, in turn doubling the width of its bounds rectangle. Note that scaling is performed from the origin of the coordinate system, (0.0, 0.0), not the origin of the bounds rectangle; as a result, both the origin and size of the bounds rectangle are changed. The frame rectangle remains unchanged.
This method posts an
bounds to the default notification center if the view is configured to do so.