Sets the origin and size of the window’s frame rectangle, with optional animation, according to a given frame rectangle, thereby setting its position and size onscreen.
Original signature is '- (void)setFrame:(NSRect)windowFrame display:(BOOL)displayViews animate:(BOOL)performAnimation'
Available in Mac OS X v10.0 and later.
Declaration Syntax
Parameters
- windowFrame (NSRect)
- The frame rectangle for the window, including the title bar.
- displayViews (Boolean)
- Specifies whether the window redraws the views that need to be displayed. When YES the window sends a displayIfNeeded message down its view hierarchy, thus redrawing all views.
- performAnimation (Boolean)
- Specifies whether the window performs a smooth resize. YES to perform the animation, whose duration is specified by animationResizeTime:.
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)