Type Alias
NSNotificationName
The type used for the name of a notification.
SDKs
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
- watchOS 3.0+
Topics
Type Properties
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.
NSCalendarDayChangedNotification
A notification that is posted whenever the calendar day of the system changes, as determined by the system calendar, locale, and time zone.
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.
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.
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.
ACAccountStoreDidChangeNotification
Posted when the accounts managed by this account store changed in the database. There is no userInfo
dictionary associated with this notification.
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.
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.
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.
DeprecatedNSViewGlobalFrameDidChangeNotification
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.
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.
WebHistoryItemChangedNotification
Posted by a WebHistoryItem object when the value of the history item’s title, alternate title, URL strings, or last visited interval changes.
DeprecatedMPMoviePlayerThumbnailImageRequestDidFinishNotification
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:
DeprecatedUITextFieldTextDidBeginEditingNotification
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.
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.
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.
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.
See Also
Creating Notifications
- init
Initializes an empty notification.