Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSApplicationMBS class.
NSApplicationMBS.NSAppKitVersionNumber as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
See NSAppKitVersionNumber* constants.
NSApplicationMBS.NSApplicationDidBecomeActiveNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted immediately after the application becomes active.
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidChangeScreenParametersNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted when the configuration of the displays attached to the computer is changed.
The configuration change can be made either programmatically or when the user changes settings in the Displays control panel. The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidFinishLaunchingNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the end of the finishLaunching method to indicate that the application has completed launching and is ready to run.
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidFinishRestoringWindowsNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The notification is posted when the application is finished restoring windows, that is, when all the completion handlers from restoreWindowWithIdentifier have been called. This is always posted after NSApplicationWillFinishLaunchingNotification, but may be posted before or after NSApplicationDidFinishLaunchingNotification, depending on whether clients copy the completion handlers and invoke them later. If there were no windows to restore, then this notification is still posted at the corresponding point in app launch (between NSApplicationWillFinishLaunchingNotification and NSApplicationDidFinishLaunchingNotification).
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
Available in OS X v10.7 and later.
NSApplicationMBS.NSApplicationDidHideNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the end of the hide method to indicate that the application is now hidden.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidResignActiveNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted immediately after the application gives up its active status to another application.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidUnhideNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the end of the unhideWithoutActivation method to indicate that the application is now visible.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationDidUpdateNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the end of the updateWindows method to indicate that the application has finished updating its windows.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationLaunchIsDefaultLaunchKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The following key is present in the userInfo of NSApplicationDidFinishLaunchingNotification or in the didFinishLaunching event. Its value is a number containing a bool. It will be false if the app was launched to open or print a file, to perform a Service, if the app had saved state that will be restored, or if the app launch was in some other sense not a "default" launch. Otherwise its value will be true.
Available on Mac OS X 10.7 or newer.
NSApplicationMBS.NSApplicationLaunchRemoteNotificationKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
User info keys for NSApplicationDidFinishLaunchingNotification.
Available on Mac OS X 10.7 or newer.
Some examples using this method:
NSApplicationMBS.NSApplicationLaunchUserNotificationKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This key is present in the userInfo of NSApplicationDidFinishLaunchingNotification. It will be present if your application was launched because a user activated a notification in the Notification Center. Its value is an NSUserNotification object.
Available in Mac OS X 10.8.
NSApplicationMBS.NSApplicationWillBecomeActiveNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted immediately after the application becomes active.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillFinishLaunchingNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the start of the finishLaunching method to indicate that the application has completed its initialization process and is about to finish launching.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillHideNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the start of the hide method to indicate that the application is about to be hidden.
The notification object is NSApp. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillResignActiveNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted immediately before the application gives up its active status to another application.
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillTerminateNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted by the terminate method to indicate that the application will terminate.
Posted only if the delegate method applicationShouldTerminate returns true. The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillUnhideNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the start of the unhideWithoutActivation method to indicate that the application is about to become visible.
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.NSApplicationWillUpdateNotification as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Posted at the start of the updateWindows method to indicate that the application is about to update its windows.
The notification object is sharedApplication. This notification does not contain a userInfo dictionary.
NSApplicationMBS.sharedApplication as NSApplicationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacCocoa Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The plugin makes sure that there is only one application object by returning the same object each time.
Some examples using this method:
- /AVFoundation/Recorder
- /AVFoundation/Screen Recorder
- /MacBase/Menus/Cocoa Menu Modification
- /MacCloud/Push Notification/Push Notification
- /MacCocoa/DockMeter/Dock Meter
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacOSX/Start Dictation on Mac OS X 10.8
The items on this page are in the following plugins: MBS MacCocoa Plugin.
