Modifies and returns a frame rectangle so that its top edge lies on a specific screen.
The proposed frame rectangle to adjust.
The screen on which the top edge of the window’s frame is to lie.
The adjusted frame rectangle.
If the window is resizable and the window’s height is greater than the screen height, the rectangle’s height is adjusted to fit within the screen as well. The rectangle’s width and horizontal location are unaffected. You shouldn’t need to invoke this method yourself; it’s invoked automatically (and the modified frame is used to locate and set the size of the window) whenever a titled
NSWindow object is placed onscreen and whenever its size is changed.
Subclasses can override this method to prevent their instances from being constrained or to constrain them differently.
The window’s frame rectangle in screen coordinates, including the title bar.
Positions the bottom-left corner of the window’s frame rectangle at a given point in screen coordinates.
Positions the top-left corner of the window’s frame rectangle at a given point in screen coordinates.
Sets the origin and size of the window’s frame rectangle according to a given frame rectangle, thereby setting its position and size onscreen.
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.
The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it.
The minimum size to which the window’s frame (including its title bar) can be sized.
The maximum size to which the window’s frame (including its title bar) can be sized.
A Boolean value that indicates whether the window is in a zoomed state.
This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
This action method toggles the size and location of the window between its standard state (provided by the application as the “best” size to display the window’s data) and its user state (a new size and location the user may have set by moving or resizing the window).
The flags field of the event record for the mouse-down event that initiated the resizing session.
A Boolean value that indicates whether the window’s resize indicator is visible.
A Boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed.
A Boolean value that indicates whether the window is being resized by the user.