![]() |
API
0.9.6
|
A notification that can be posted to a CPNotificationCenter. More...
#import <CPNotification.h>
Class Methods | |
(CPNotification) | + notificationWithName:object: |
(CPNotification) | + notificationWithName:object:userInfo: |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Additional Inherited Members | |
![]() | |
Class | isa |
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 70 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 84 of file CPNotification.j.
|
implementation |
Returns the notification name.
Definition at line 101 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 62 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 51 of file CPNotification.j.
|
implementation |
Returns the notification's object.
Definition at line 109 of file CPNotification.j.
|
implementation |
Returns the notification's dictionary.
Definition at line 117 of file CPNotification.j.