#import <IMediator.h>
Inherited by Mediator.
Public Member Functions | |
(NSString *) | - mediatorName |
(id) | - viewComponent |
(void) | - handleNotification: |
(NSArray *) | - listNotificationInterests |
(void) | - onRegister |
(void) | - onRemove |
(void) | - setViewComponent: |
In PureMVC, IMediator
implementors assume these responsibilities:
INotification
s the IMediator
has interest in.
Additionally, IMediator
s typically:
INotifications
, interacting with of the rest of the PureMVC app.
When an IMediator
is registered with the IView
, the IView
will call the IMediator
's listNotificationInterests
method. The IMediator
will return an Array
of INotification
names which it wishes to be notified about.
The IView
will then create an Observer
object encapsulating that IMediator
's (handleNotification
) method and register it as an Observer for each INotification
name returned by listNotificationInterests
.
- (void) handleNotification: | (id< INotification >) | notification |
Handle an INotification
.
notification | the INotification to be handled |
Reimplemented in Mediator.
- (NSArray *) listNotificationInterests |
List INotification
interests.
Array
of the INotification
names this IMediator
has an interest in. Reimplemented in Mediator.
- (void) setViewComponent: | (id) | viewComponent |
- (id) viewComponent |