Sha256: f50d5b456f297f4fbd1527cf962b21b4d36ca393f0ff71295a413e31dd7e764f

Contents?: true

Size: 854 Bytes

Versions: 4

Compression:

Stored size: 854 Bytes

Contents

//
//  SimpleCommand.m
//  PureMVC_ObjectiveC
//
//  PureMVC Port to ObjectiveC by Brian Knorr <brian.knorr@puremvc.org>
//  PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved.
//

#import "SimpleCommand.h"


@implementation SimpleCommand

/**
 * Static Convenience Constructor. 
 */
+(id)command {
	return [[[self alloc] init] autorelease];
}

/**
 * Fulfill the use-case initiated by the given <code>INotification</code>.
 * 
 * <P>
 * In the Command Pattern, an application use-case typically
 * begins with some user action, which results in an <code>INotification</code> being broadcast, which 
 * is handled by business logic in the <code>execute</code> method of an
 * <code>ICommand</code>.</P>
 * 
 * @param notification the <code>INotification</code> to handle.
 */
-(void)execute:(id<INotification>)notification {}

@end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
appjam-0.1.0.pre11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/command/SimpleCommand.m
appjam-0.1.0.pre9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/command/SimpleCommand.m
appjam-0.1.0.pre6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/command/SimpleCommand.m
appjam-0.1.0.pre4 lib/appjam/generators/Classes/org/puremvc/objectivec/patterns/command/SimpleCommand.m