Platforms to show: All Mac Windows Linux Cross-Platform

Back to MAAttachedWindowMBS class.

MAAttachedWindowMBS.arrowBaseWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The arrow base width.

Default is 20.
(Read and Write computed property)

Some examples using this property:

MAAttachedWindowMBS.arrowHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The height of the arrow.

Default is 16.
(Read and Write computed property)

Some examples using this property:

MAAttachedWindowMBS.borderColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The border color.

Default is white.
(Read and Write computed property)

MAAttachedWindowMBS.borderWidth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The border width.

Default is 2.
(Read and Write computed property)

MAAttachedWindowMBS.Constructor(view as NSViewMBS, point as NSPointMBS = nil, window as NSWindowMBS = nil, onSide as Integer = 12, distance as Double = 0.0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Window MBS MacExtras Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new attached window.

After constructor finished without exception, please check handle property for success. Handle is zero on failure.

view: The view to display in the attached window. Must not be nil.
point: The point to which the attached window should be attached. If you are also specifying a parent window, the point should be in the coordinate system of that parent window. If you are not specifying a window, the point should be in the screen's coordinate space. This value is required.
window: The parent window to attach this one to. Note that no actual relationship is created (particularly, this window is not made a childWindow of the parent window). Default: nil.
onSide: The side of the specified point on which to attach this window. Default: MAPositionAutomatic.
distance: How far from the specified point this window should be. Default: 0.

MAAttachedWindowMBS.cornerRadius as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The corner radius.

Default is 8.
(Read and Write computed property)

MAAttachedWindowMBS.drawsRoundCornerBesideArrow as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to draw round corners beside arrow.

Default is true.
(Read and Write computed property)

Some examples using this property:

MAAttachedWindowMBS.hasArrow as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the window shows an arrow.

Default is true.
(Read and Write computed property)

Some examples using this property:

MAAttachedWindowMBS.setBackgroundImage(image as NSImageMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Window MBS MacExtras Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Here you can set the background image.

MAAttachedWindowMBS.setPoint(point as NSPointMBS, side as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the position and redraws window.

MAAttachedWindowMBS.side as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Window MBS MacExtras Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Which side the attached window is showing at.

If you passed automatic side mode to Constructor or attachedWindow method, you can query here which side was chosen.

MAAttachedWindowMBS.viewMargin as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The view margin.

Default is 2.
(Read and Write computed property)

Some examples using this property:

MAAttachedWindowMBS.windowBackgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS MacExtras Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The window background color.

Default is 25% dark gray.
(Read and Write computed property)

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


The biggest plugin in space...