Translates the view’s coordinate system so that its origin moves to a new location.
- macOS 10.0+
A point that specifies the new origin.
In the process, the origin of the view’s bounds rectangle is shifted by (
–translation). This method neither redisplays the view nor marks it as needing display. You must do this yourself by calling the
display() method or setting the
Note the difference between this method and setting the bounds origin. Translation effectively moves the image inside the bounds rectangle, while setting the bounds origin effectively moves the rectangle over the image. The two are in a sense inverse, although translation is cumulative, and setting the bounds origin is absolute.
This method posts an
bounds to the default notification center if the view is configured to do so.