A notification that can be posted to a CPNotificationCenter. More...
#import <CPNotification.h>
Class Methods | |
(CPNotification) | + notificationWithName:object: |
(CPNotification) | + notificationWithName:object:userInfo: |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
A notification that can be posted to a CPNotificationCenter.
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 2 of file CPNotification.h.
|
implementation |
CPUnsupportedMethodException | always, because the method should not be used |
Reimplemented from CPObject.
Definition at line 69 of file CPNotification.j.
|
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 83 of file CPNotification.j.
|
implementation |
Returns the notification name.
Definition at line 100 of file CPNotification.j.
|
implementation |
Creates a new notification with the specified name and object.
aNotificationName | the name of the notification |
anObject | the associated object |
Definition at line 61 of file CPNotification.j.
|
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 50 of file CPNotification.j.
|
implementation |
Returns the notification's object.
Definition at line 108 of file CPNotification.j.
|
implementation |
Returns the notification's dictionary.
Definition at line 116 of file CPNotification.j.