Type Alias

NSNotificationName

The type used for the name of a notification.

Declaration

typedef NSString *NSNotificationName;

Discussion

In Objective-C, NSNotification names are type aliased to the NSString class. In Swift, Notification names use the nested NSNotificationName type.

Topics

Type Properties

AVAudioEngineConfigurationChangeNotification

A notification posted when the audio engine configuration changes.

AVAudioSessionInterruptionNotification

Posted when an audio interruption occurs.

AVAudioSessionMediaServicesWereLostNotification

Posted when the media server is terminated.

AVAudioSessionMediaServicesWereResetNotification

Posted when the media server restarts.

AVAudioSessionRouteChangeNotification

Posted when the system’s audio route changes.

AVAudioSessionSilenceSecondaryAudioHintNotification

Posted when the primary audio from other applications starts and stops.

CKAccountChangedNotification

Notification posted when the status of the signed-in iCloud account may have changed.

CLKComplicationServerActiveComplicationsDidChangeNotification

Posted went the set of active complications changes.

CNContactStoreDidChangeNotification

Posted notifications when changes occur in another CNContactStore.

EKEventStoreChangedNotification

A notification posted when changes are made to the Calendar database.

HKUserPreferencesDidChangeNotification

Notifies observers whenever the user changes his or her preferred units.

HMCharacteristicPropertySupportsEventNotification

The characteristic supports notifications using the event connection established by the controller. The event connection provides unidirectional communication from the accessory to the controller.

NSBundleResourceRequestLowDiskSpaceNotification

Posted after the system detects that the amount of available disk space is getting low. The notification is posted to the default notification center.

NSCalendarDayChangedNotification

A notification that is posted whenever the calendar day of the system changes, as determined by the system calendar, locale, and time zone.

NSExtensionHostDidBecomeActiveNotification

Posted when the extension’s host app moves from the inactive to the active state.

NSExtensionHostDidEnterBackgroundNotification

Posted when the extension’s host app begins running in the background.

NSExtensionHostWillEnterForegroundNotification

Posted when the extension’s host app begins running in the foreground.

NSExtensionHostWillResignActiveNotification

Posted when the extension’s host app moves from the active to the inactive state.

NSFileHandleConnectionAcceptedNotification

This notification is posted when an NSFileHandle object establishes a socket connection between two processes, creates an NSFileHandle object for one end of the connection, and makes this object available to observers by putting it in the userInfo dictionary.

NSFileHandleDataAvailableNotification

This notification is posted when the file handle determines that data is currently available for reading in a file or at a communications channel.

NSFileHandleReadToEndOfFileCompletionNotification

This notification is posted when the file handle reads all data in the file or, if a communications channel, until the other process signals the end of data.

NSHTTPCookieManagerAcceptPolicyChangedNotification

A notification posted when the acceptance policy of the cookie storage has changed.

NSHTTPCookieManagerCookiesChangedNotification

A notification posted when the cookies stored in the cookie storage have changed.

NSManagedObjectContextDidSaveNotification

A notification that the context completed a save.

NSManagedObjectContextObjectsDidChangeNotification

A notification of changes made to managed objects associated with this context.

NSManagedObjectContextWillSaveNotification

A notification that the context is about to save.

NSMetadataQueryDidFinishGatheringNotification

Posted when the receiver has finished with the initial result-gathering phase of the query.

NSMetadataQueryDidStartGatheringNotification

Posted when the receiver begins with the initial result-gathering phase of the query.

NSMetadataQueryDidUpdateNotification

Posted when the receiver’s results have changed during the live-update phase of the query.

NSMetadataQueryGatheringProgressNotification

Posted as the receiver is collecting results during the initial result-gathering phase of the query.

NSPersistentStoreCoordinatorStoresDidChangeNotification

Posted whenever persistent stores are added to or removed from a persistent store coordinator, or when store UUIDs change.

NSPersistentStoreCoordinatorStoresWillChangeNotification

Posted before the list of open persistent stores changes.

NSPersistentStoreCoordinatorWillRemoveStoreNotification

Posted whenever a persistent store is removed from a persistent store coordinator.

NSProcessInfoPowerStateDidChangeNotification

Posted when the power state (Low Power Mode is enabled or disabled) of an iOS device changes.

NSSystemClockDidChangeNotification

A notification posted whenever the system clock is changed.

NSSystemTimeZoneDidChangeNotification

A notification posted when the time zone changes.

NSThreadWillExitNotification

An NSThread object posts this notification when it receives the exit message, before the thread exits. Observer methods invoked to receive this notification execute in the exiting thread, before it exits.

NSURLCredentialStorageChangedNotification

A notification posted when the set of stored credentials changes.

NSUbiquityIdentityDidChangeNotification

Sent after the iCloud (“ubiquity”) identity has changed.

NSUndoManagerCheckpointNotification

Posted whenever an NSUndoManager object opens or closes an undo group (except when it opens a top-level group) and when checking the redo stack in canRedo.

NSUndoManagerDidCloseUndoGroupNotification

Posted after an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method.

NSUndoManagerDidOpenUndoGroupNotification

Posted whenever an NSUndoManager object opens an undo group, which occurs in the implementation of the beginUndoGrouping method.

NSUndoManagerDidRedoChangeNotification

Posted just after an NSUndoManager object performs a redo operation (redo).

NSUndoManagerDidUndoChangeNotification

Posted just after an NSUndoManager object performs an undo operation.

NSUndoManagerWillCloseUndoGroupNotification

Posted before an NSUndoManager object closes an undo group, which occurs in the implementation of the endUndoGrouping method.

NSUndoManagerWillRedoChangeNotification

Posted just before an NSUndoManager object performs a redo operation (redo).

NSUndoManagerWillUndoChangeNotification

Posted just before an NSUndoManager object performs an undo operation.

NSWillBecomeMultiThreadedNotification

Posted when the first thread is detached from the current thread. The NSThread class posts this notification at most once—the first time a thread is detached using detachNewThreadSelector:toTarget:withObject: or the start method. Subsequent invocations of those methods do not post this notification. Observers of this notification have their notification method invoked in the main thread, not the new thread. The observer notification methods always execute before the new thread begins executing.

PKPassLibraryDidChangeNotification

Posted after the pass library has been changed.

PKPassLibraryRemotePaymentPassesDidChangeNotification

Posted when an Apple Pay card is added to or removed from a device that is paired with the current iOS device (for example, Apple Watch).

UIAccessibilityAnnouncementDidFinishNotification

Posted by UIKit when the system has finished reading an announcement.

UIAccessibilityElementFocusedNotification

Posted by UIKit when an assistive technology focuses on an element.

WKAudioFilePlayerItemDidPlayToEndTimeNotification

Posted when the item has played successfully to its end time.

WKAudioFilePlayerItemFailedToPlayToEndTimeNotification

Posted when the item failed to play to its end time.

WKAudioFilePlayerItemTimeJumpedNotification

Posted when the item’s current time has changed discontinuously.

ABPeoplePickerDisplayedPropertyDidChangeNotification

Posted when the displayed property in the record list is changed.

ABPeoplePickerGroupSelectionDidChangeNotification

Posted when the selection in the group list is changed.

ABPeoplePickerNameSelectionDidChangeNotification

Posted when the selection in the name list is changed.

ABPeoplePickerValueSelectionDidChangeNotification

Posted when the selection in a multivalue property is changed.

ACAccountStoreDidChangeNotification

Posted when the accounts managed by this account store changed in the database. There is no userInfo dictionary associated with this notification.

AVCaptureDeviceWasConnectedNotification

Posted when a new device becomes available.

AVCaptureDeviceWasDisconnectedNotification

Posted when an existing device becomes unavailable.

AVCaptureInputPortFormatDescriptionDidChangeNotification

Posted if the value of the capture input port’sformatDescription property changes.

AVCaptureSessionDidStartRunningNotification

Posted when a capture session starts.

AVCaptureSessionDidStopRunningNotification

Posted when a capture session stops.

AVCaptureSessionRuntimeErrorNotification

Posted if an error occurred during a capture session.

AVPlayerItemDidPlayToEndTimeNotification

A notification that's posted when the item has played to its end time.

AVPlayerItemFailedToPlayToEndTimeNotification

A notification that's posted when the item failed to play to its end time.

AVPlayerItemNewAccessLogEntryNotification

A notification that's posted when posted when a new access log entry has been added.

AVPlayerItemNewErrorLogEntryNotification

A notification that's posted when posted when a new error log entry has been added.

AVPlayerItemPlaybackStalledNotification

A notification that's posted when posted when some media didn't arrive in time to continue playback.

AVPlayerItemTimeJumpedNotification

A notification that's posted when the item’s current time has changed discontinuously.

AVSampleBufferDisplayLayerFailedToDecodeNotification

Posted when a buffer display layer failed to decode.

GCControllerDidConnectNotification

Posted immediately after a new controller is connected to the device.

GCControllerDidDisconnectNotification

Posted immediately after a controller is disconnected from the device.

IKFilterBrowserFilterDoubleClickNotification

Posted when the user double-clicks a filter in the filter browser.

IKFilterBrowserFilterSelectedNotification

Posted when the user clicks a filter name in the filter browser.

IKFilterBrowserWillPreviewFilterNotification

Posted before showing a filter preview, allowing an application to set the parameters of a filter.

MKAnnotationCalloutInfoDidChangeNotification

Notifies observers that the title or subtitle information of an annotation object changed.

NEFilterConfigurationDidChangeNotification

Posted after the filter configuration stored in the Network Extension preferences changes.

NEVPNConfigurationChangeNotification

Posted after the VPN configuration stored in the Network Extension preferences changes.

NEVPNStatusDidChangeNotification

Posted when the status of the VPN connection changes.

NSAccessibilityAnnouncementRequestedNotification

This notification is posted whenever an accessibility element needs to make an announcement to the user. This notification requires a userInfo dictionary with the key NSAccessibilityAnnouncementKey and a localized string containing the announcement. To help an assistive app determine the importance of the announcement, add the appropriate NSAccessibilityPriorityKey to the userInfo dictionary.

NSAccessibilityApplicationActivatedNotification

This notification is posted after the app has been activated. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityApplicationDeactivatedNotification

This notification is posted after the app has been deactivated. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityApplicationHiddenNotification

This notification is posted after the app is hidden. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityApplicationShownNotification

This notification is posted after the app is shown. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityCreatedNotification

This notification is posted after an accessibility element is created. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityDrawerCreatedNotification

This notification is posted after a drawer appears. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityFocusedUIElementChangedNotification

This notification is posted after an accessibility element gains focus. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityFocusedWindowChangedNotification

This notification is posted after the key window changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityHelpTagCreatedNotification

This notification is posted after a help tag appears. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityLayoutChangedNotification

This notification is posted after the UI changes in a way that requires the attention of an accessibility client. This notification should be accompanied by a userInfo dictionary with the key NSAccessibilityUIElementsKey and an array containing the UI elements that have been added or changed. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityMainWindowChangedNotification

This notification is posted after the main window changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityMovedNotification

This notification is posted after an accessibility element moves. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityResizedNotification

This notification is posted after an accessibility element’s size changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityRowCollapsedNotification

This notification is posted after a row collapses. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityRowCountChangedNotification

This notification is posted after a row is added or deleted. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityRowExpandedNotification

This notification is posted after a row expands. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedCellsChangedNotification

This notification is posted after one or more cells in a cell-based table are selected or deselected. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedChildrenChangedNotification

This notification is posted after one or more child elements are selected or deselected. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedChildrenMovedNotification

This notification is posted after the selected items in a layout area move. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedColumnsChangedNotification

This notification is posted after one or more columns are selected or deselected. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedRowsChangedNotification

This notification is posted after one or more rows are selected or deselected. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySelectedTextChangedNotification

This notification is posted after text is selected or deselected. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilitySheetCreatedNotification

This notification is posted after a sheet appears. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityTitleChangedNotification

This notification is posted after an accessibility element’s title changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityUIElementDestroyedNotification

This notification is posted after an accessibility element is destroyed. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityUnitsChangedNotification

This notification is posted after the units in a layout area change. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityValueChangedNotification

This notification is posted after an accessibility element’s value changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityWindowCreatedNotification

This notification is posted after a new window appears. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityWindowDeminiaturizedNotification

This notification is posted after a window is restored to full size from the Dock. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityWindowMiniaturizedNotification

This notification is posted after a window is put in the Dock. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityWindowMovedNotification

This notification is posted after a window moves. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAccessibilityWindowResizedNotification

This notification is posted after a window’s size changes. Post this notification using the NSAccessibilityPostNotification function instead of an NSNotificationCenter instance.

NSAnimationProgressMarkNotification

Posted when the current progress of a running animation reaches one of its progress marks.

NSAntialiasThresholdChangedNotification

Posted after the threshold for antialiasing changes.

NSAppleEventManagerWillProcessFirstEventNotification

Posted by NSAppleEventManager before it first dispatches an Apple event. Your application can use this notification to avoid registering any Apple event handlers until the first time at which they may be needed.

NSApplicationDidBecomeActiveNotification

Posted immediately after the app becomes active.

NSApplicationDidChangeOcclusionStateNotification

Posted when the app’s occlusion state changes.

NSApplicationDidChangeScreenParametersNotification

Posted when the configuration of the displays attached to the computer is changed.

NSApplicationDidFinishLaunchingNotification

Posted at the end of the finishLaunching method to indicate that the app has completed launching and is ready to run.

NSApplicationDidFinishRestoringWindowsNotification

Posted when the app is finished restoring windows.

NSApplicationDidHideNotification

Posted at the end of the hide: method to indicate that the app is now hidden.

NSApplicationDidResignActiveNotification

Posted immediately after the app gives up its active status to another app.

NSApplicationDidUnhideNotification

Posted at the end of the unhideWithoutActivation method to indicate that the app is now visible.

NSApplicationDidUpdateNotification

Posted at the end of the updateWindows method to indicate that the app has finished updating its windows.

NSApplicationWillBecomeActiveNotification

Posted immediately before the app becomes active.

NSApplicationWillFinishLaunchingNotification

Posted at the start of the finishLaunching method to indicate that the app has completed its initialization process and is about to finish launching.

NSApplicationWillHideNotification

Posted at the start of the hide: method to indicate that the app is about to be hidden.

NSApplicationWillResignActiveNotification

Posted immediately before the app gives up its active status to another app.

NSApplicationWillTerminateNotification

Posted by the terminate: method to indicate that the app will terminate.

NSApplicationWillUnhideNotification

Posted at the start of the unhideWithoutActivation method to indicate that the app is about to become visible.

NSApplicationWillUpdateNotification

Posted at the start of the updateWindows method to indicate that the app is about to update its windows.

NSBrowserColumnConfigurationDidChangeNotification

Notifies the delegate when the width of a browser column has changed.

NSClassDescriptionNeededForClassNotification

Posted by classDescriptionForClass: when a class description cannot be found for a class.

NSColorPanelColorDidChangeNotification

Posted when the color of the NSColorPanel is set, as when NSColorPanel is invoked.

NSComboBoxSelectionDidChangeNotification

Posted after the pop-up list selection of the NSComboBox changes.

NSComboBoxSelectionIsChangingNotification

Posted whenever the pop-up list selection of the NSComboBox is changing.

NSComboBoxWillDismissNotification

Posted whenever the pop-up list of the NSComboBox is about to be dismissed.

NSComboBoxWillPopUpNotification

Posted whenever the pop-up list of the NSComboBox is going to be displayed.

NSContextHelpModeDidActivateNotification

Posted when the application enters context-sensitive help mode. This typically happens when the user holds down the Help key.

NSContextHelpModeDidDeactivateNotification

Posted when the application exits context-sensitive help mode. This happens when the user clicks the mouse button while the cursor is anywhere on the screen after displaying a context-sensitive help topic.

NSControlTextDidBeginEditingNotification

Sent when a control with editable cells begins an edit session.

NSControlTextDidChangeNotification

Sent when the text in the receiving control changes.

NSControlTextDidEndEditingNotification

Sent when a control with editable cells ends an editing session.

NSControlTintDidChangeNotification

Sent after the user changes control tint preference.

Deprecated
NSDrawerDidCloseNotification

Posted whenever the drawer is closed.

Deprecated
NSDrawerDidOpenNotification

Posted whenever the drawer is opened.

Deprecated
NSDrawerWillCloseNotification

Posted whenever the drawer is about to close.

Deprecated
NSDrawerWillOpenNotification

Posted whenever the drawer is about to open.

Deprecated
NSFontCollectionDidChangeNotification

Posted whenever a font collection is changed.

NSFontSetChangedNotification

Posted after the currently-set font changes.

NSImageRepRegistryDidChangeNotification

Posted whenever the NSImageRep class registry changes.

NSMenuDidAddItemNotification

Posted after a menu item is added to the menu.

NSMenuDidBeginTrackingNotification

Posted when menu tracking begins.

NSMenuDidChangeItemNotification

Posted after a menu item in the menu changes appearance.

NSMenuDidEndTrackingNotification

Posted when menu tracking ends, even if no action is sent.

NSMenuDidRemoveItemNotification

Posted after a menu item is removed from the menu.

NSMenuDidSendActionNotification

Posted just after the application dispatches a menu item’s action method to the menu item’s target.

NSMenuWillSendActionNotification

Posted just before the application dispatches a menu item’s action method to the menu item’s target.

NSOutlineViewColumnDidMoveNotification

Posted whenever a column is moved by user action in an NSOutlineView object.

NSOutlineViewColumnDidResizeNotification

Posted whenever a column is resized in an NSOutlineView object.

NSOutlineViewItemDidCollapseNotification

Posted whenever an item is collapsed in an NSOutlineView object.

NSOutlineViewItemDidExpandNotification

Posted whenever an item is expanded in an NSOutlineView object.

NSOutlineViewItemWillCollapseNotification

Posted before an item is collapsed (after the user clicks the arrow but before the item is collapsed).

NSOutlineViewItemWillExpandNotification

Posted before an item is expanded (after the user clicks the arrow but before the item is collapsed).

NSOutlineViewSelectionDidChangeNotification

Posted after the outline view's selection changes.

NSOutlineViewSelectionIsChangingNotification

Posted as the outline view’s selection changes (while the mouse button is still down).

NSPersistentStoreDidImportUbiquitousContentChangesNotification

Posted after records are imported from the ubiquitous content store.

Deprecated
NSPopUpButtonCellWillPopUpNotification

This notification is posted just before a pop-up menu is attached to its window frame.

NSPopUpButtonWillPopUpNotification

Posted when an NSPopUpButton object receives a mouse-down event—that is, when the user is about to select an item from the menu.

NSPopoverDidCloseNotification

Sent after the popover has finished animating offscreen.

NSPopoverDidShowNotification

Sent after the popover has finished animating onscreen.

NSPopoverWillCloseNotification

Sent before the popover is closed.

NSPopoverWillShowNotification

Sent before the popover is shown.

NSPreferencePaneCancelUnselectNotification

Notifies the main application that the preference pane is not willing to be deselected.

NSPreferencePaneDoUnselectNotification

Notifies the main application that the preference pane is willing to be deselected.

NSPreferredScrollerStyleDidChangeNotification

Posted if the preferred scroller style changes.

NSRuleEditorRowsDidChangeNotification

This notification is posted to the default notification center whenever the view's rows change.

NSScreenColorSpaceDidChangeNotification

Posted when the color space of the screen has changed.

NSScrollViewDidEndLiveMagnifyNotification

Posted at the end of a magnify gesture.

NSScrollViewDidEndLiveScrollNotification

Posted on the main thread at the end of live scroll tracking.

NSScrollViewDidLiveScrollNotification

Posted on the main thread after changing the clipview bounds origin due to a user-initiated event.

NSScrollViewWillStartLiveMagnifyNotification

Posted at the beginning of a magnify gesture.

NSScrollViewWillStartLiveScrollNotification

Posted on the main thread at the beginning of user-initiated live scroll tracking (gesture scroll or scroller tracking, for example, thumb dragging).

NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification

This notification is posted when the spell checker did change text using automatic spell checking correction. The are posted to the application’s default notification center.

NSSpellCheckerDidChangeAutomaticTextReplacementNotification

Posted when the spell checker changed text using automatic text replacement. This notification is posted to the app’s default notification center.

NSSplitViewDidResizeSubviewsNotification

Posted after an NSSplitView changes the sizes of some or all of its subviews.

NSSplitViewWillResizeSubviewsNotification

Posted before an NSSplitView changes the sizes of some or all of its subviews.

NSSystemColorsDidChangeNotification

Sent when the system colors have changed, such as through a system control panel interface.

NSTableViewColumnDidMoveNotification

Posted whenever a column is moved by user action in an NSTableView object.

NSTableViewColumnDidResizeNotification

Posted whenever a column is resized in an NSTableView object.

NSTableViewSelectionDidChangeNotification

Posted after an NSTableView object's selection changes.

NSTableViewSelectionIsChangingNotification

Posted as an NSTableView object's selection changes (while the mouse button is still down).

NSTextAlternativesSelectedAlternativeStringNotification

Posted when the user selects an alternate string.

NSTextDidBeginEditingNotification

Posted when an NSText object begins any operation that changes characters or formatting attributes.

NSTextDidChangeNotification

Posted after an NSText object performs any operation that changes characters or formatting attributes.

NSTextDidEndEditingNotification

Posted when focus leaves an NSText object, whether or not any operation has changed characters or formatting attributes.

NSTextInputContextKeyboardSelectionDidChangeNotification

Posted after the selected text input source changes.

NSTextStorageDidProcessEditingNotification

Posted after a text storage finishes processing edits in processEditing.

NSTextStorageWillProcessEditingNotification

Posted before a text storage finishes processing edits in processEditing.

NSTextViewDidChangeSelectionNotification

Posted when the selected range of characters changes.

NSTextViewDidChangeTypingAttributesNotification

Posted when there is a change in the typing attributes within a text view.

NSTextViewWillChangeNotifyingTextViewNotification

Posted when a new text view is established as the text view that sends notifications.

NSToolbarDidRemoveItemNotification

Posted after an item is removed from a toolbar.

NSToolbarWillAddItemNotification

Posted before a new item is added to the toolbar.

NSViewBoundsDidChangeNotification

Posted whenever the NSView’s bounds rectangle changes to a new value independently of the frame rectangle, but only when the view’s postsBoundsChangedNotifications property is YES.

NSViewDidUpdateTrackingAreasNotification

Posted whenever an NSView object recalculates its tracking areas.

NSViewFocusDidChangeNotification

Deprecated in macOS 10.4 and later. Posted for an NSView object and each of its descendants (recursively) whenever the frame or bounds geometry of the view changed.

Deprecated
NSViewFrameDidChangeNotification

Posted whenever the view’s frame rectangle changes to a new value, but only when the view’s postsFrameChangedNotifications property is YES.

NSViewGlobalFrameDidChangeNotification

Posted whenever an NSView object that has attached surfaces (that is, NSOpenGLContext objects) moves to a different screen, or other cases where the NSOpenGLContext object needs to be updated.

NSWindowDidBecomeKeyNotification

Posted whenever an NSWindow object becomes the key window.

NSWindowDidBecomeMainNotification

Posted whenever an NSWindow object becomes the main window.

NSWindowDidChangeBackingPropertiesNotification

Posted when the window backing properties change.

NSWindowDidChangeOcclusionStateNotification

Posted when the window’s occlusion state changes.

NSWindowDidChangeScreenNotification

Posted whenever a portion of an NSWindow object’s frame moves onto or off of a screen.

NSWindowDidChangeScreenProfileNotification

Posted whenever the display profile for the screen containing the window changes.

NSWindowDidDeminiaturizeNotification

Posted whenever an NSWindow object is deminimized.

NSWindowDidEndLiveResizeNotification

Posted after the user resizes a window.

NSWindowDidEndSheetNotification

Posted whenever an NSWindow object closes an attached sheet.

NSWindowDidEnterFullScreenNotification

Posted when the window entered full screen mode.

NSWindowDidEnterVersionBrowserNotification

Posted when the window will enter version browser mode.

NSWindowDidExitFullScreenNotification

Posted when the window did exit full screen mode.

NSWindowDidExitVersionBrowserNotification

Posted when the window did exit version browser mode.

NSWindowDidExposeNotification

Posted whenever a portion of a nonretained NSWindow object is exposed, whether by being ordered in front of other windows or by other windows being removed from in front of it.

NSWindowDidMiniaturizeNotification

Posted whenever an NSWindow object is minimized.

NSWindowDidMoveNotification

Posted whenever an NSWindow object is moved.

NSWindowDidResignKeyNotification

Posted whenever an NSWindow object resigns its status as key window.

NSWindowDidResignMainNotification

Posted whenever an NSWindow object resigns its status as main window.

NSWindowDidResizeNotification

Posted whenever an NSWindow object’s size changes.

NSWindowDidUpdateNotification

Posted whenever an NSWindow object receives an update message.

NSWindowWillBeginSheetNotification

Posted whenever an NSWindow object is about to open a sheet.

NSWindowWillCloseNotification

Posted whenever an NSWindow object is about to close.

NSWindowWillEnterFullScreenNotification

Posted when the window will enter full screen mode.

NSWindowWillEnterVersionBrowserNotification

Posted when the window will enter version browser mode.

NSWindowWillExitFullScreenNotification

Posted when the window will exit full screen mode.

NSWindowWillExitVersionBrowserNotification

Posted when the window will exit version browser mode.

NSWindowWillMiniaturizeNotification

Posted whenever an NSWindow object is about to be minimized.

NSWindowWillMoveNotification

Posted whenever an NSWindow object is about to move.

NSWindowWillStartLiveResizeNotification

Posted before the user resizes a window.

NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification

Posted when any of the accessibility display options change.

NSWorkspaceActiveSpaceDidChangeNotification

Posted when a Spaces change has occurred.

NSWorkspaceDidActivateApplicationNotification

Posted when the Finder is about to activate an app.

NSWorkspaceDidChangeFileLabelsNotification

Posted when the Finder file labels or colors change.

NSWorkspaceDidDeactivateApplicationNotification

Posted when the Finder deactivated an app.

NSWorkspaceDidHideApplicationNotification

Posted when the Finder hid an app.

NSWorkspaceDidLaunchApplicationNotification

Posted when a new app has started up.

NSWorkspaceDidMountNotification

Posted when a new device has been mounted.

NSWorkspaceDidPerformFileOperationNotification

Posted when a file operation has been performed in the receiving app.

Deprecated
NSWorkspaceDidRenameVolumeNotification

Posted when a volume changes its name and/or mount path. These typically change simultaneously, in which case only one notification is posted.

NSWorkspaceDidTerminateApplicationNotification

Posted when an app finishes executing.

NSWorkspaceDidUnhideApplicationNotification

Posted when the Finder unhid an app.

NSWorkspaceDidUnmountNotification

Posted when the Finder did unmount a device.

NSWorkspaceDidWakeNotification

Posted when the machine wakes from sleep.

NSWorkspaceScreensDidSleepNotification

Posted when the machine’s screen goes to sleep.

NSWorkspaceScreensDidWakeNotification

Posted when the machine’s screens wake.

NSWorkspaceSessionDidBecomeActiveNotification

Posted after a user session is switched in.

NSWorkspaceSessionDidResignActiveNotification

Posted before a user session is switched out.

NSWorkspaceWillLaunchApplicationNotification

Posted when the Finder is about to launch an app.

NSWorkspaceWillPowerOffNotification

Posted when the user has requested a logout or that the machine be powered off.

NSWorkspaceWillSleepNotification

Posted before the machine goes to sleep.

NSWorkspaceWillUnmountNotification

Posted when the Finder is about to unmount a device.

PDFDocumentDidBeginPageFindNotification

A notification that a find operation begins working on a new page of a document.

PDFDocumentDidBeginPageWriteNotification

A notification that a write operation begins working on a page in a document.

PDFDocumentDidBeginWriteNotification

A notification that a write operation begins working on a document.

PDFDocumentDidEndPageFindNotification

A notification that a find operation finishes working on a page in a document.

PDFDocumentDidEndPageWriteNotification

A notification that a write operation finishes working on a page in a document.

PDFDocumentDidEndWriteNotification

A notification that a write operation finishes working on a document.

PDFDocumentDidFindMatchNotification

A notification that a string match is found in a document.

PDFDocumentDidUnlockNotification

A notification that a document unlocks after a unlockWithPassword: message.

PDFViewAnnotationHitNotification

A notification posted when the user clicks on an annotation.

PDFViewAnnotationWillHitNotification

A notification posted before the user clicks an annotation.

PDFViewChangedHistoryNotification

A notification posted when the page history changes.

PDFViewCopyPermissionNotification

A notification posted when the user attempts to copy to the pasteboard without the appropriate permissions.

PDFViewDisplayBoxChangedNotification

A notification posted when the display box has changed.

PDFViewDisplayModeChangedNotification

A notification posted when the display mode has changed.

PDFViewDocumentChangedNotification

A notification posted when a new document is associated with the view.

PDFViewPageChangedNotification

A notification posted when a new page becomes the current page.

PDFViewPrintPermissionNotification

A notification posted when the user attempts to print without the appropriate permissions.

PDFViewScaleChangedNotification

A notification posted when the scale factor changes.

PDFViewSelectionChangedNotification

A notification posted when the current selection has changed.

PDFViewVisiblePagesChangedNotification

A notification posted when the visible pages have changed.

QCCompositionPickerPanelDidSelectCompositionNotification

Posted when the user chooses a composition.

QCCompositionPickerViewDidSelectCompositionNotification

Posted when the user selects a composition in the picker view.

QCCompositionRepositoryDidUpdateNotification

Posted whenever the list of compositions in the composition repository is updated.

QCViewDidStartRenderingNotification

Posted when the view starts rendering.

QCViewDidStopRenderingNotification

Posted when the view stops rendering.

WebHistoryAllItemsRemovedNotification

Posted when all history items have been removed from the web history.

Deprecated
WebHistoryItemChangedNotification

Posted by a WebHistoryItem object when the value of the history item’s title, alternate title, URL strings, or last visited interval changes.

Deprecated
WebHistoryItemsAddedNotification

Posted when history items have been added to a web history.

Deprecated
WebHistoryItemsRemovedNotification

Posted when items have been removed from the web history.

Deprecated
WebHistoryLoadedNotification

Posted when web history items have been loaded from a URL.

Deprecated
WebHistorySavedNotification

Posted when web history items have been saved to a URL.

Deprecated
WebPreferencesChangedNotification

Posted when the web preference settings are changed.

Deprecated
WebViewDidBeginEditingNotification

Posted when a web view begins any operation that changes its contents in response to user editing.

WebViewDidChangeNotification

Posted when a web view performs any operation that changes its contents in response to user editing.

WebViewDidChangeSelectionNotification

Posted when a web view changes its typing selection.

WebViewDidChangeTypingStyleNotification

Posted when a web view changes its typing style.

WebViewDidEndEditingNotification

Posted when a web view ends any operation that changes its contents in response to user editing.

WebViewProgressEstimateChangedNotification

Posted by a WebView object when the estimated progress value of a load changes.

Deprecated
WebViewProgressFinishedNotification

Posted by a WebView object when the load has finished.

Deprecated
WebViewProgressStartedNotification

Posted by a WebView object when a load begins, including a load that is initiated in a subframe.

Deprecated
kABDatabaseChangedNotification

Posted when this process has changed the Address Book database.

kABDatabaseChangedExternallyNotification

Posted when a process other than the current one has changed the Address Book database.

EAAccessoryDidConnectNotification

Posted when an accessory becomes connected and available for your application to use.

EAAccessoryDidDisconnectNotification

Posted when an accessory is disconnected and no longer available for your application to use.

MPMovieDurationAvailableNotification

Posted when the duration of a movie has been determined. There is no userInfo dictionary.

Deprecated
MPMovieMediaTypesAvailableNotification

Posted when the available media types in a movie are determined. There is no userInfo dictionary.

Deprecated
MPMovieNaturalSizeAvailableNotification

Posted when the natural frame size of a movie is first determined or subsequently changes. There is no userInfo dictionary.

Deprecated
MPMoviePlayerDidEnterFullscreenNotification

Posted when a movie player has entered full-screen mode. There is no userInfo dictionary.

Deprecated
MPMoviePlayerDidExitFullscreenNotification

Posted when a movie player has exited full-screen mode. There is no userInfo dictionary.

Deprecated
MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification

Posted when a movie player has started or ended playing a movie via AirPlay. There is no userInfo dictionary.

Deprecated
MPMoviePlayerLoadStateDidChangeNotification

Posted when a movie player’s network buffering state has changed. There is no userInfo dictionary.

Deprecated
MPMoviePlayerNowPlayingMovieDidChangeNotification

Posted when the currently playing movie has changed. There is no userInfo dictionary.

Deprecated
MPMoviePlayerPlaybackDidFinishNotification

Posted when a movie has finished playing. The userInfo dictionary of this notification contains the MPMoviePlayerPlaybackDidFinishReasonUserInfoKey key, which indicates the reason that playback finished. This notification is also sent when playback fails because of an error.

Deprecated
MPMoviePlayerPlaybackStateDidChangeNotification

Posted when a movie player’s playback state has changed. There is no userInfo dictionary.

Deprecated
MPMoviePlayerReadyForDisplayDidChangeNotification

Posted when the ready for display state changes.

Deprecated
MPMoviePlayerScalingModeDidChangeNotification

Posted when the scaling mode of a movie player has changed. There is no userInfo dictionary.

Deprecated
MPMoviePlayerThumbnailImageRequestDidFinishNotification

Posted when a request to capture a thumbnail from a movie has finished whether the request succeeded or failed. Upon successful capture of a thumbnail, the userInfo dictionary contains values for the following keys:

Deprecated
MPMoviePlayerTimedMetadataUpdatedNotification

Posted when new timed metadata arrives.

Deprecated
MPMoviePlayerWillEnterFullscreenNotification

Posted when a movie player is about to enter full-screen mode. The userInfo dictionary contains keys whose values describe the transition animation used to enter full-screen mode. See Fullscreen Notification Keys.

Deprecated
MPMoviePlayerWillExitFullscreenNotification

Posted when a movie player is about to exit full-screen mode. The userInfo dictionary contains keys whose values describe the transition animation used to exit full-screen mode. See Fullscreen Notification Keys.

Deprecated
MPMovieSourceTypeAvailableNotification

Posted when the source type of a movie was previously unknown and is newly available. There is no userInfo dictionary.

Deprecated
SKCloudServiceCapabilitiesDidChangeNotification

A notification name for indicating a change in the capabilities associated with the music library on the device.

SKStorefrontIdentifierDidChangeNotification

A notification name for indicating a change in the storefront identifier associated with the device.

TVTopShelfItemsDidChangeNotification

A notification to post when your app’s Top Shelf content has changed.

UIAccessibilityAssistiveTouchStatusDidChangeNotification

Posted by UIKit when the enabled status of AssistiveTouch changes in system preferences.

UIAccessibilityBoldTextStatusDidChangeNotification

Posted by UIKit when the system’s Bold Text setting has changed.

UIAccessibilityClosedCaptioningStatusDidChangeNotification

Posted by UIKit when the setting for closed captioning has changed.

UIAccessibilityDarkerSystemColorsStatusDidChangeNotification

Posted by UIKit when the system’s Darken Colors setting has changed.

UIAccessibilityGrayscaleStatusDidChangeNotification

Posted by UIKit when the system’s Grayscale setting has changed.

UIAccessibilityGuidedAccessStatusDidChangeNotification

Posted by UIKit when a Guided Access session starts or ends.

UIAccessibilityHearingDevicePairedEarDidChangeNotification

Posted by UIKit when there is a change to the currently paired hearing devices.

UIAccessibilityInvertColorsStatusDidChangeNotification

Posted by UIKit when the setting for inverted colors has changed.

UIAccessibilityMonoAudioStatusDidChangeNotification

Posted by UIKit when system audio changes from stereo to mono.

UIAccessibilityReduceMotionStatusDidChangeNotification

Posted by UIKit when the system’s Reduce Motion setting has changed.

UIAccessibilityReduceTransparencyStatusDidChangeNotification

Posted by UIKit when the system’s Reduce Transparency system setting has changed.

UIAccessibilityShakeToUndoDidChangeNotification

Posted by UIKit when the system's shake to undo feature is enabled or disabled.

UIAccessibilitySpeakScreenStatusDidChangeNotification

Posted by UIKit when the system’s Speak Screen setting has changed.

UIAccessibilitySpeakSelectionStatusDidChangeNotification

Posted by UIKit when the system’s Speak Selection setting has changed.

UIAccessibilitySwitchControlStatusDidChangeNotification

Posted by UIKit when the system’s Switch Control setting has changed.

UIApplicationDidBecomeActiveNotification

Posted when the app becomes active.

UIApplicationDidEnterBackgroundNotification

Posted when the app enters the background.

UIApplicationDidFinishLaunchingNotification

Posted immediately after the app finishes launching.

UIApplicationDidReceiveMemoryWarningNotification

Posted when the app receives a warning from the operating system about low memory availability.

UIApplicationSignificantTimeChangeNotification

Posted when there is a significant change in time, for example, change to a new day (midnight), carrier time update, and change to or from daylight savings time.

UIApplicationUserDidTakeScreenshotNotification

Posted when the user presses the Home and Lock buttons to take a screenshot.

UIApplicationWillEnterForegroundNotification

Posted shortly before an app leaves the background state on its way to becoming the active app.

UIApplicationWillResignActiveNotification

Posted when the app is no longer active and loses focus.

UIApplicationWillTerminateNotification

Posted when the app is about to terminate.

UIContentSizeCategoryDidChangeNotification

Posted when the user changes the preferred content size setting.

UIDeviceProximityStateDidChangeNotification

Posted when the state of the proximity sensor changes.

UIScreenBrightnessDidChangeNotification

This notification is posted when the brightness of a screen changes.

UIScreenDidConnectNotification

This notification is posted when a new screen is connected to the device.

UIScreenDidDisconnectNotification

This notification is posted when a screen is disconnected from the device.

UIScreenModeDidChangeNotification

This notification is posted when the current mode of a screen changes.

UITableViewSelectionDidChangeNotification

Posted when the selected row in the posting table view changes.

UITextFieldTextDidBeginEditingNotification

Notifies observers that an editing session began in a text field. The affected text field is stored in the object parameter of the notification. The userInfo dictionary is not used.

UITextFieldTextDidChangeNotification

Notifies observers that the text in a text field changed. The affected text field is stored in the object parameter of the notification.

UITextFieldTextDidEndEditingNotification

Notifies observers that the editing session ended for a text field. The affected text field is stored in the object parameter of the notification. The userInfo dictionary is not used.

UITextInputCurrentInputModeDidChangeNotification

Posted when the current input mode changes.

UITextViewTextDidBeginEditingNotification

Notifies observers that an editing session began in a text view. The affected view is stored in the object parameter of the notification. The userInfo dictionary is not used.

UITextViewTextDidChangeNotification

Notifies observers that the text in a text view changed. The affected view is stored in the object parameter of the notification. The userInfo dictionary is not used.

UITextViewTextDidEndEditingNotification

Notifies observers that the editing session ended for a text view. The affected view is stored in the object parameter of the notification. The userInfo dictionary is not used.

UIViewControllerShowDetailTargetDidChangeNotification

Posted when a split view controller is expanded or collapsed.

UIWindowDidBecomeHiddenNotification

Posted when an UIWindow object becomes hidden.

UIWindowDidBecomeKeyNotification

Posted whenever a UIWindow object becomes the key window.

UIWindowDidBecomeVisibleNotification

Posted when an UIWindow object becomes visible.

UIWindowDidResignKeyNotification

Posted whenever a UIWindow object resigns its status as main window.

ALAssetsLibraryChangedNotification

Sent when the contents of the assets library have changed from under the app that is using the data.

Deprecated
AVCaptureDeviceSubjectAreaDidChangeNotification

Posted when the instance of AVCaptureDevice has detected a substantial change to the video subject area.

AVCaptureSessionInterruptionEndedNotification

Posted if an interruption to a capture session finishes.

AVCaptureSessionWasInterruptedNotification

Posted if a capture session is interrupted.

MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification

Posted when the value returned by the canSendText class method has changed.

MPMediaLibraryDidChangeNotification

Indicates the media library has changed.

MPMediaPlaybackIsPreparedToPlayDidChangeNotification

Indicates that the prepared to play status of the media player has changed.

Deprecated
MPMusicPlayerControllerNowPlayingItemDidChangeNotification

Posted when the currently playing media item has changed.

MPMusicPlayerControllerPlaybackStateDidChangeNotification

Posted when the playback state has been changed programmatically or by user action.

MPMusicPlayerControllerVolumeDidChangeNotification

Posted when the audio playback volume for the music player has changed.

MPVolumeViewWirelessRouteActiveDidChangeNotification

Indicates the active wireless route changed.

MPVolumeViewWirelessRoutesAvailableDidChangeNotification

Indicates the available wireless routes changed.

NKIssueDownloadCompletedNotification

Posted when all assets of the issue have been downloaded.

UIApplicationBackgroundRefreshStatusDidChangeNotification

Posted when the app’s status for downloading content in the background changes.

UIApplicationDidChangeStatusBarFrameNotification

Posted when the frame of the status bar changes.

UIApplicationDidChangeStatusBarOrientationNotification

Posted when the orientation of the app’s user interface changes.

UIApplicationWillChangeStatusBarFrameNotification

Posted when the app is about to change the frame of the status bar.

UIApplicationWillChangeStatusBarOrientationNotification

Posted when the app is about to change the orientation of its interface.

UIDeviceBatteryLevelDidChangeNotification

Posted when the battery level changes.

UIDeviceBatteryStateDidChangeNotification

Posted when battery state changes.

UIDeviceOrientationDidChangeNotification

Posted when the orientation of the device changes.

UIDocumentStateChangedNotification

Posted by the document object when there is a change in the state of the document.

UIKeyboardDidChangeFrameNotification

Posted immediately after a change in the keyboard’s frame.

UIKeyboardDidHideNotification

Posted immediately after the dismissal of the keyboard.

UIKeyboardDidShowNotification

Posted immediately after the display of the keyboard.

UIKeyboardWillChangeFrameNotification

Posted immediately prior to a change in the keyboard’s frame.

UIKeyboardWillHideNotification

Posted immediately prior to the dismissal of the keyboard.

UIKeyboardWillShowNotification

Posted immediately prior to the display of the keyboard.

UIMenuControllerDidHideMenuNotification

Posted by the menu controller just after it hides the menu.

UIMenuControllerDidShowMenuNotification

Posted by the menu controller just after it shows the menu.

UIMenuControllerMenuFrameDidChangeNotification

Posted when the frame of a visible menu changes.

UIMenuControllerWillHideMenuNotification

Posted by the menu controller just before it hides the menu.

UIMenuControllerWillShowMenuNotification

Posted by the menu controller just before it shows the menu.

UIPasteboardChangedNotification

Posted by a pasteboard object when its contents change.

UIPasteboardRemovedNotification

Posted by a pasteboard object just before an app removes it.

UIApplicationProtectedDataDidBecomeAvailable

Posted when the protected files become available for your code to access.

UIApplicationProtectedDataWillBecomeUnavailable

Posted shortly before protected files are locked down and become inaccessible.

MPMusicPlayerControllerQueueDidChangeNotification

Indicates the music player's queue changed.

GKPlayerAuthenticationDidChangeNotificationName

Posted after the authenticated property of the shared local player object changes. The object property for this notification is a GKLocalPlayer object. Passing nil provides standard Notification Center behavior which is to receive the notification for any object.

GKPlayerDidChangeNotificationName

Posted when a player object’s data changes.

NEDNSProxyConfigurationDidChangeNotification

A notification that is posted when the DNS proxy configuration changes.

SKStorefrontCountryCodeDidChangeNotification

A notification name for indicating a change in the storefront country code associated with the device.

WKAccessibilityReduceMotionStatusDidChangeNotification

Posted by WatchKit when reduced motion is enabled or disabled. This notification does not include a parameter.

See Also

Creating Notifications

init

Initializes an empty notification.

initWithCoder:

Initializes a notification with the data from an unarchiver.

notificationWithName:object:

Returns a new notification object with a specified name and object.

notificationWithName:object:userInfo:

Returns a notification object with a specified name, object, and user information.

initWithName:object:userInfo:

Initializes a notification with a specified name, object, and user information.