Public Member Functions | |
(id) | - init [implementation] |
(id) | - initWithName:object:userInfo: [implementation] |
(CPString) | - name [implementation] |
(id) | - object [implementation] |
(CPDictionary) | - userInfo [implementation] |
Static Public Member Functions | |
(CPNotification) | + notificationWithName:object:userInfo: [implementation] |
(CPNotification) | + notificationWithName:object: [implementation] |
Represents a notification for posting to an CPNotificationCenter. Consists of a name, an object, and an optional dictionary. The notification center will check for observers registered to receive either notifications with the name, the object, or both and pass the notification instance on to them.
To create a notification use one of the class methods. The default init method will throw a CPUnsupportedMethodException.
Definition at line 35 of file CPNotification.j.
- (id) init | [implementation] |
CPUnsupportedMethodException | always, because the method should not be used |
Definition at line 68 of file CPNotification.j.
- (id) initWithName: | (CPString) | aNotificationName | ||
object: | (id) | anObject | ||
userInfo: | (CPDictionary) | aUserInfo | ||
[implementation] |
Initializes the notification with a name, object and dictionary
aNotificationName | the name of the notification | |
anObject | the associated object | |
aUserInfo | the associated dictionary |
Definition at line 82 of file CPNotification.j.
- (CPString) name | [implementation] |
Returns the notification name.
Definition at line 99 of file CPNotification.j.
+ (CPNotification) notificationWithName: | (CPString) | aNotificationName | ||
object: | (id) | anObject | ||
[implementation] |
Creates a new notification with the specified name and object.
aNotificationName | the name of the notification | |
anObject | the associated object |
Definition at line 60 of file CPNotification.j.
+ (CPNotification) notificationWithName: | (CPString) | aNotificationName | ||
object: | (id) | anObject | ||
userInfo: | (CPDictionary) | aUserInfo | ||
[implementation] |
Creates a new notification with the specified name, object and dictionary.
aNotificationName | the name of the notification | |
anObject | the associated object | |
aUserInfo | the associated dictionary |
Definition at line 49 of file CPNotification.j.
- (id) object | [implementation] |
Returns the notification's object.
Definition at line 107 of file CPNotification.j.
- (CPDictionary) userInfo | [implementation] |
Returns the notification's dictionary.
Definition at line 115 of file CPNotification.j.