Type Method

notificationWithName:object:

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

Declaration

+ (instancetype)notificationWithName:(NSNotificationName)aName object:(id)anObject;

Parameters

aName

The name for the new notification. May not be nil.

anObject

The object for the new notification.

See Also

Creating Notifications

- init

Initializes an empty notification.

- initWithCoder:

Initializes a notification with the data from an unarchiver.

+ 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.

NSNotificationName

The type used for the name of a notification.