Instance Method
zoom(toFit:)zoomViewToFitRect:zoomViewToFitRect_
Zooms so that the passed rect will fit in the view.
Declaration
func zoom(toFit rect: NSRect)Declaration
- (void) zoomViewToFitRect:(NSRect) rect;Declaration
zoomViewToFitRect_(rect: NSRect)Discussion
In general this should be used for a zoom OUT, such as a “fit to window” command, though it will zoom in if the view is smaller than the current frame.