Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSWindowMBS class.

NSWindowMBS.canBecomeKeyWindow as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Indicates whether the window can become the key window.

Attempts to make the window the key window are abandoned if this method returns false. The NSWindow implementation returns true if the window has a title bar or a resize bar, or false otherwise.
(Read only property)

NSWindowMBS.canBecomeMainWindow as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Indicates whether the window can become the application's main window.

Attempts to make the window the main window are abandoned if this method returns false. The NSWindow implementation returns true if the window is visible, is not an NSPanel object, and has a title bar or a resize mechanism. Otherwise it returns false.
(Read only property)

NSWindowMBS.canBecomeVisibleWithoutLogin as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Indicates whether the window can be displayed at the login window.

Default: false.
Available in Mac OS X v10.5 and later.
(Read and Write property)

NSWindowMBS.canHide as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies whether the window can be hidden when its application becomes hidden (during execution of the NSApplication hide method).

(Read and Write property)

NSWindowMBS.canStoreColor as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Indicates whether the window has a depth limit that allows it to store color values.

(Read only property)

NSWindowMBS.className as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The name of this NSWindow class.

(Read only property)

NSWindowMBS.classPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The path of this NSView class.

Useful for debugging to know what super classes the window has.
(Read only property)

NSWindowMBS.collectionBehavior as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Identifies the window's behavior in window collections.

Available in Mac OS X v10.5 and later.
(Read and Write property)

NSWindowMBS.colorSpace as NSColorSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The window's color space.

Available in Mac OS X v10.6 and later.
(Read and Write property)

NSWindowMBS.contentAspectRatio as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The aspect ratio (height in relation to width) of the window's content view, constraining the dimensions of its content rectangle to integral multiples of that ratio when the user resizes it.

Available in Mac OS X v10.3 and later
(Read and Write property)

NSWindowMBS.contentLayoutRect as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 21.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The area inside the window that is for non-obscured content, in window coordinates.

Typically, the area represented by this property is the same as the frame of the contentView. However, for windows with NSFullSizeContentViewWindowMask set, there needs to be a way to determine the portion that is not under the toolbar. The contentLayoutRect property contains the portion of the layout that is not obscured under the toolbar.
(Read only property)

NSWindowMBS.contentMaxSize as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The maximum size of the window's content view.

Available in Mac OS X v10.3 and later.
(Read and Write property)

NSWindowMBS.contentMinSize as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The minimum size of the window's content view.

Available in Mac OS X v10.3 and later.
(Read and Write property)

NSWindowMBS.contentResizeIncrements as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The window's content-view resizing increments.

Available in Mac OS X v10.3 and later.
(Read and Write property)

NSWindowMBS.contentView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.4 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The receiver's content view, the highest accessible NSView object in the receiver's view hierarchy.

(Read and Write property)

NSWindowMBS.currentEvent as NSEventMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the event currently being processed by the application, by invoking NSApplication's currentEvent method.

Returns the event being processed by the application.
(Read only property)

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...