MonobjcMonobjc Documented Class Library
WindowWillUseStandardFrameDefaultFrame Method (window, newFrame)
NamespacesMonobjc.AppKitINSWindowDelegateWindowWillUseStandardFrameDefaultFrame(NSWindow, NSRect)

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

Original signature is '- (NSRect)windowWillUseStandardFrame:(NSWindow *)window defaultFrame:(NSRect)newFrame'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSRect WindowWillUseStandardFrameDefaultFrame(
	NSWindow window,
	NSRect newFrame
)
Function WindowWillUseStandardFrameDefaultFrame ( _
	window As NSWindow, _
	newFrame As NSRect _
) As NSRect
NSRect WindowWillUseStandardFrameDefaultFrame(
	NSWindow^ window, 
	NSRect newFrame
)
Parameters
window (NSWindow)
The window whose frame size is being determined.
newFrame (NSRect)
The size of the current screen, which is the screen containing the largest part of the window’s current frame, possibly reduced on the top, bottom, left, or right, depending on the current interface style. The frame is reduced on the top to leave room for the menu bar.
Return Value
The specified window’s standard frame.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)