CPNotification Class Reference
[Foundation]

List of all members.

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]


Detailed Description

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.


Member Function Documentation

- (id) init   [implementation]

Exceptions:
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

Parameters:
aNotificationName the name of the notification
anObject the associated object
aUserInfo the associated dictionary
Returns:
the initialized notification

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.

Parameters:
aNotificationName the name of the notification
anObject the associated object
Returns:
the new notification

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.

Parameters:
aNotificationName the name of the notification
anObject the associated object
aUserInfo the associated dictionary
Returns:
the new notification

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.


The documentation for this class was generated from the following file:

Generated on Wed May 20 12:44:01 2009 for Cappuccino by  doxygen 1.5.8