Platforms to show: All Mac Windows Linux Cross-Platform

Back to MAAttachedWindowMBS class.

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

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

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.

Returns a new attached window.

Some examples using this method:

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


The biggest plugin in space...