didResignActiveNotification
Posted immediately after the app gives up its active status to another app.
Declaration
class let didResignActiveNotification: NSNotification.NameDiscussion
The notification object is NSApp. This notification doesn’t contain a userInfo dictionary. The system posts this notification on the main actor.
To observe this notification using Swift concurrency, use NSApplication.DidResignActiveMessage.
See Also
Notifications
didBecomeActiveNotificationdidChangeScreenParametersNotificationdidFinishLaunchingNotificationdidHideNotificationdidUnhideNotificationdidUpdateNotificationwillBecomeActiveNotificationwillFinishLaunchingNotificationwillHideNotificationwillResignActiveNotificationwillTerminateNotificationwillUnhideNotificationwillUpdateNotificationdidFinishRestoringWindowsNotificationdidChangeOcclusionStateNotification