Instance Method

windowShouldZoom:toFrame:

Asks the delegate whether the specified window should zoom to the specified frame.

Declaration

- (BOOL)windowShouldZoom:(NSWindow *)window toFrame:(NSRect)newFrame;

Parameters

window

The window being zoomed.

newFrame

The rectangle to which the specified window is being zoomed.

Return Value

YES to allow window’s frame to become newFrame; otherwise, NO.

See Also

Zooming Window

- windowWillUseStandardFrame:defaultFrame:

Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to.