contentRect(forFrameRect:styleMask:)
Returns the content rectangle used by a window with a given frame rectangle and window style.
Declaration
class func contentRect(forFrameRect fRect: NSRect, styleMask style: NSWindow.StyleMask) -> NSRectParameters
- fRect:
The frame rectangle for the window expressed in screen coordinates.
- style:
The window style for the window. See Stylemask Swift.struct for a list of style mask values.
Return Value
The content rectangle, expressed in screen coordinates, used by the window with fRect and style.
Discussion
When a NSWindow instance is available, you should use contentRect(forFrameRect:) instead of this method.