Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSWindowMBS class.
NSWindowMBS.contentRectForFrameRect(windowFrame as NSRectMBS, styleMask as UInt32) as NSRectMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
windowFrame: The frame rectangle for the window expressed in screen coordinates.
windowStyle: The window style for the window. See constants for a list of style mask values.
Returns the content rectangle, expressed in screen coordinates, used by the window with windowFrame and windowStyle.
When a NSWindowMBS instance is available, you should use contentRectForFrameRect instead of this method.
See also:
NSWindowMBS.frameRectForContentRect(windowContentRect as NSRectMBS, styleMask as UInt32) as NSRectMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
windowContentRect: The content rectangle for a window expressed in screen coordinates.
windowStyle: The window style for the window. See Window Style Mask constants for a list of style mask values.
Returns the frame rectangle, expressed in screen coordinates, used by the window with windowContentRect and windowStyle.
When a NSWindowMBS instance is available, you should use frameRectForContentRect instead of this method.
See also:
NSWindowMBS.minFrameWidthWithTitle(WindowTitle as string, styleMask as UInt32) as Double
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
windowTitle: The title for the window.
windowStyle: The window style for the window. See Window Style Mask constants for a list of style mask values.
The minimum width of the window's frame, using windowStyle, in order to display windowTitle.
NSWindowMBS.removeFrameUsingName(name as string)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
NSWindowMBS.standardWindowButton(button as Integer, StyleMask as Integer) as Variant
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
button: The kind of standard window button to return.
StyleMask: The window style for which windowButtonKind is to be sized. See "Window Style Masks" for the list of allowable values.
Returns the new window button of the kind identified by windowButtonKind; nil when no such button kind exists.
The caller is responsible for adding the button to the view hierarchy and for setting the target to be the window.
Declared as Variant for reduced plugin dependencies.
Button constants: NSWindowCloseButton, NSWindowDocumentIconButton, NSWindowMiniaturizeButton, NSWindowToolbarButton and NSWindowZoomButton
See also:
NSWindowMBS.windowNumberAtPoint(x as Double, y as Double, belowWindowWithWindowNumber as Integer = 0) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
belowWindowWithWindowNumber can be specified to exclude a given window along with all windows above it, and may belong to any application. If no windows are to be excluded, specify 0 for belowWindowWithWindowNumber. The windowNumber returned may correspond to a window in another application.
Requires Mac OS X 10.6 or newer.
Some examples using this method:
NSWindowMBS.windowNumbersWithOptions(options as Integer = 0) as Integer()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa | MBS MacBase Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
In no options are specified, only visible windows belonging to the calling application and on the active space are included. If options include NSWindowNumberListAllApplications, visible windows belonging to all applications are included. If options include NSWindowNumberListAllSpaces, visible windows on all spaces are included.
The items on this page are in the following plugins: MBS MacBase Plugin.