NSNotification

E820435

NSNotification is an Objective-C class that encapsulates information about an event, including its name and optional associated data, for use in the Cocoa notification system.

All labels observed (2)

Label Occurrences
Cocoa notification system 2
NSNotification canonical 2

How this entity was disambiguated

Statements (44)

Predicate Object
instanceOf Cocoa class
Objective-C class
definedIn Foundation framework
deliveredBy NSDistributedNotificationCenter
NSNotificationCenter
documentationURL https://developer.apple.com/documentation/foundation/nsnotification
encapsulates information about an event
notification name
notification sender
optional associated data
framework Foundation
hasMethod + notificationWithName:object:
+ notificationWithName:object:userInfo:
- initWithName:object:userInfo:
- name
- object
- userInfo
hasProperty description
name
object
userInfo
hasSuperclass NSObject
headerFile Foundation/NSNotification.h
immutable true
introducedIn Cocoa
memoryManagement referenceCountedObject
namespace global Objective-C class namespace
pattern observer pattern
platform iOS
macOS
tvOS
watchOS
programmingLanguage Objective-C
relatedConcept KVO (Key-Value Observing)
linked to: Key-Value Observing

delegation pattern
role carries event payload
identifies event by name
threadingModel canBePostedFromAnyThread
usedFor broadcast-style communication within a process
decoupling event senders and observers
usedIn Cocoa notification system
linked to: NSNotification
usedWith NSDistributedNotificationCenter
NSNotificationCenter
NSNotificationQueue

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

NSNotificationCenter relatedClass NSNotification
NSNotification usedIn Cocoa notification system
linked to: NSNotification
NSNotificationQueue usesType NSNotification
NSNotificationQueue partOf Cocoa notification system
linked to: NSNotification