Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSApplicationMBS class.
NSApplicationMBS.unhideAllApplications
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This action causes each application to order its windows to the front, which could obscure the currently active window in the active application.
NSApplicationMBS.unhideWithoutActivation
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
When this method begins, it posts an NSApplicationWillUnhideNotification to the default notification center. If it completes successfully, it posts an NSApplicationDidUnhideNotification.
NSApplicationMBS.updateWindows
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This method is invoked automatically in the main event loop after each event when running in NSDefaultRunLoopMode or NSModalRunLoopMode. This method is not invoked automatically when running in NSEventTrackingRunLoopMode.
When this method begins, it posts an NSApplicationWillUpdateNotification to the default notification center. When it successfully completes, it posts an NSApplicationDidUpdateNotification.
NSApplicationMBS.updateWindowsItem(win as NSWindowMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
win: The window whose menu item is to be updated.
You rarely need to invoke this method because it is invoked automatically when the edit status of an NSWindow object is set.
NSApplicationMBS.windows as NSWindowMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an array of NSWindow objects. This array includes both onscreen and offscreen windows.
Some examples using this method:
NSApplicationMBS.windowWithWindowNumber(windowNumber as Integer) as NSWindowMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
windowNumber: The unique window number associated with the desired NSWindow object.
Returns the desired window object or nil if the window could not be found.
The items on this page are in the following plugins: MBS MacCocoa Plugin.