Instance Method

postNotificationName:object:

Creates a notification with a given name and sender and posts it to the notification center.

Declaration

- (void)postNotificationName:(NSNotificationName)aName object:(id)anObject;

Parameters

aName

The name of the notification.

anObject

The object posting the notification.

Discussion

This is a convenience method for calling postNotificationName:object:userInfo: and passing nil to aUserInfo.

See Also

Posting Notifications

postNotification:

Posts a given notification to the notification center.

postNotificationName:object:userInfo:

Creates a notification with a given name, sender, and information and posts it to the notification center.