#import "INotification.h" /** * The interface definition for a PureMVC Controller. * *
* In PureMVC, an IController
implementor
* follows the 'Command and Controller' strategy, and
* assumes these responsibilities:
*
ICommand
s
* are intended to handle which INotifications
.IObserver
with
* the View
for each INotification
* that it has an ICommand
mapping for.ICommand
* to handle a given INotification
when notified by the View
.ICommand
's execute
* method, passing in the INotification
.ICommand
previously registered as the
* handler for INotification
s with the given notification name.
*
* @param notification the INotification
to execute the associated ICommand
for
*/
-(void)executeCommand:(idnotificationName
.
*/
-(BOOL)hasCommand:(NSString *)notificationName;
/**
* Register a particular ICommand
class as the handler
* for a particular INotification
.
*
* @param notificationName the name of the INotification
* @param commandClassRef the Class of the ICommand
*/
-(void)registerCommand:(NSString *)notificationName commandClassRef:(Class)commandClassRef;
/**
* Remove a previously registered ICommand
to INotification
mapping.
*
* @param notificationName the name of the INotification
to remove the ICommand
mapping for
*/
-(void)removeCommand:(NSString *)notificationName;
@end