< IController > Protocol Reference

#import <IController.h>

Inherited by Controller.

List of all members.

Public Member Functions

(void) - executeCommand:
(BOOL) - hasCommand:
(void) - registerCommand:commandClassRef:
(void) - removeCommand:


Detailed Description

The interface definition for a PureMVC Controller.

In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:

See also:
INotification, ICommand

Member Function Documentation

- (void) executeCommand: (id< INotification >)  notification  

Execute the ICommand previously registered as the handler for INotifications with the given notification name.

Parameters:
notification the INotification to execute the associated ICommand for

Reimplemented in Controller.

- (BOOL) hasCommand: (NSString *)  notificationName  

Check if a Command is registered for a given Notification

Parameters:
notificationName 
Returns:
whether a Command is currently registered for the given notificationName.

Reimplemented in Controller.

- (void) registerCommand: (NSString *)  notificationName
commandClassRef: (Class)  commandClassRef 

Register a particular ICommand class as the handler for a particular INotification.

Parameters:
notificationName the name of the INotification
commandClassRef the Class of the ICommand

Reimplemented in Controller.

- (void) removeCommand: (NSString *)  notificationName  

Remove a previously registered ICommand to INotification mapping.

Parameters:
notificationName the name of the INotification to remove the ICommand mapping for

Reimplemented in Controller.


Generated on Wed Dec 24 14:19:08 2008 for PureMVC Objective-C by  doxygen 1.5.7.1