#import <View.h>
Inherits IView-p.
Public Member Functions | |
| (id) | - init |
| (void) | - initializeView |
| (BOOL) | - hasMediator: [implementation] |
| (void) | - notifyObservers: [implementation] |
| (void) | - registerMediator: [implementation] |
| (void) | - registerObserver:observer: [implementation] |
| (id< IMediator >) | - removeMediator: [implementation] |
| (void) | - removeObserver:notifyContext: [implementation] |
| (id< IMediator >) | - retrieveMediator: [implementation] |
Static Public Member Functions | |
| (id< IView >) | + getInstance |
IView implementation.
In PureMVC, the View class assumes these responsibilities:
IMediator instances. IMediators. IMediators when they are registered or removed. INotification in the application. IObservers to an INotification's observer list. INotification. IObservers of a given INotification when it broadcast.
| - (BOOL) hasMediator: | (NSString *) | mediatorName | [implementation] |
| - (id) init |
| - (void) initializeView |
Initialize the Singleton View instance.
Called automatically by the constructor, this is your opportunity to initialize the Singleton instance in your subclass without overriding the constructor.
| - (void) notifyObservers: | (id<INotification>) | notification | [implementation] |
Notify the IObservers for a particular INotification.
All previously attached IObservers for this INotification's list are notified and are passed a reference to the INotification in the order in which they were registered.
| notification | the INotification to notify IObservers of. |
Reimplemented from < IView >.
| - (void) registerMediator: | (id<IMediator>) | mediator | [implementation] |
Register an IMediator instance with the View.
Registers the IMediator so that it can be retrieved by name, and further interrogates the IMediator for its INotification interests.
If the IMediator returns any INotification names to be notified about, an Observer is created encapsulating the IMediator instance's handleNotification method and registering it as an Observer for all INotifications the IMediator is interested in.
| mediator | a reference to the IMediator instance |
Reimplemented from < IView >.
| - (void) registerObserver: | (NSString *) | notificationName | ||
| observer: | (id<IObserver>) | observer | ||
[implementation] |
| - (id< IMediator >) removeMediator: | (NSString *) | mediatorName | [implementation] |
| - (void) removeObserver: | (NSString *) | notificationName | ||
| notifyContext: | (id) | notifyContext | ||
[implementation] |
Remove the observer for a given notifyContext from an observer list for a given Notification name.
| notificationName | which observer list to remove from | |
| notifyContext | remove the observer with this object as its notifyContext |
Reimplemented from < IView >.
| - (id< IMediator >) retrieveMediator: | (NSString *) | mediatorName | [implementation] |
1.5.7.1