SimpleCommand Class Reference

#import <SimpleCommand.h>

Inherits Notifier, and ICommand-p.

List of all members.

Public Member Functions

(void) - execute: [implementation]
(void) - sendNotification:body:type: [implementation]

Static Public Member Functions

(id) + command


Detailed Description

A base ICommand implementation.

Your subclass should override the execute method where your business logic will handle the INotification.

See also:
Controller, Notification, MacroCommand

Member Function Documentation

+ (id) command  

Static Convenience Constructor.

- (void) execute: (id<INotification>)  notification   [implementation]

Fulfill the use-case initiated by the given INotification.

In the Command Pattern, an application use-case typically begins with some user action, which results in an INotification being broadcast, which is handled by business logic in the execute method of an ICommand.

Parameters:
notification the INotification to handle.

Reimplemented from < ICommand >.

- (void) sendNotification: (NSString *)  notificationName
body: (id)  body
type: (NSString *)  type 
[implementation]

Create and send an INotification.

Keeps us from having to construct new INotification instances in our implementation code.

Parameters:
notificationName the name of the notiification to send
body the body of the notification
type the type of the notification

Reimplemented from < INotifier >.


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