#import <Notification.h>
Inherits INotification-p.
Public Member Functions | |
| (id) | - initWithName:body:type: |
| (NSString *) | - description |
| (id) | - body |
| (NSString *) | - name |
| (NSString *) | - type |
| (void) | - setBody: |
| (void) | - setType: |
Static Public Member Functions | |
| (id) | + withName:body:type: |
INotification implementation.PureMVC does not rely upon underlying event models such as the one provided with in AppKit or UIKit
The Observer Pattern as implemented within PureMVC exists to support event-driven communication between the application and the actors of the MVC triad.
Notifications are not meant to be a replacement for Events in AppKit or UIKit. Generally, IMediator implementors place event listeners on their view components, which they then handle in the usual way. This may lead to the broadcast of Notifications to trigger ICommands or to communicate with other IMediators. IProxy and ICommand instances communicate with each other and IMediators by broadcasting INotifications.
| - (id) body |
Get the body of the INotification instance
| - (NSString *) description |
Get the string representation of the Notification instance.
Notification instance. Reimplemented from < INotification >.
| - (id) initWithName: | (NSString *) | _name | ||
| body: | (id) | _body | ||
| type: | (NSString *) | _type | ||
Constructor.
| name | name of the Notification instance. | |
| body | the Notification body. | |
| type | the type of the Notification |
| - (NSString *) name |
Get the name of the INotification instance. No setter, should be set by constructor only
| - (void) setBody: | (id) | body |
Set the body of the INotification instance
| - (void) setType: | (NSString *) | type |
Set the type of the INotification instance
| - (NSString *) type |
Get the type of the INotification instance
| + (id) withName: | (NSString *) | name | ||
| body: | (id) | body | ||
| type: | (NSString *) | type | ||
Static Convienence Constructor.
| name | name of the Notification instance. | |
| body | the Notification body. | |
| type | the type of the Notification |
1.5.7.1