Instance Property

name

The name of the notification.

Declaration

@property(readonly, copy) NSNotificationName name;

Discussion

Typically you use this property to find out what kind of notification you are dealing with when you receive a notification.

Special Considerations

Notification names can be any string. To avoid name collisions, you might want to use a prefix that’s specific to your application.

See Also

Getting Notification Information

object

The object associated with the notification.

userInfo

The user information dictionary associated with the notification.