Sha256: 5045026b3899facce89f3326d849d85673c5ea3551fdaf356a5cf759b39d2bf9

Contents?: true

Size: 1.69 KB

Versions: 34

Compression:

Stored size: 1.69 KB

Contents

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

#import <Foundation/Foundation.h>
#import "INotification.h"

/**
 * A base <code>INotification</code> implementation.
 * 
 * <P>
 * PureMVC does not rely upon underlying event models such 
 * as the one provided with in AppKit or UIKit</P>
 * 
 * <P>
 * The Observer Pattern as implemented within PureMVC exists 
 * to support event-driven communication between the 
 * application and the actors of the MVC triad.</P>
 * 
 * <P>
 * Notifications are not meant to be a replacement for Events
 * in AppKit or UIKit. Generally, <code>IMediator</code> implementors
 * place event listeners on their view components, which they
 * then handle in the usual way. This may lead to the broadcast of <code>Notification</code>s to 
 * trigger <code>ICommand</code>s or to communicate with other <code>IMediators</code>. <code>IProxy</code> and <code>ICommand</code>
 * instances communicate with each other and <code>IMediator</code>s 
 * by broadcasting <code>INotification</code>s.</P>
 * 
 * @see Observer
 * 
 */
@interface Notification : NSObject <INotification> {
	NSString *name, *type;
	id body;
}

@property(nonatomic, retain) NSString *name;
@property(nonatomic, retain) NSString *type;
@property(nonatomic, retain) id body;

+(id)withName:(NSString *)name body:(id)body type:(NSString *)type;
+(id)withName:(NSString *)nam;
+(id)withName:(NSString *)name body:(id)body;
+(id)withName:(NSString *)name type:(NSString *)type;
-(id)initWithName:(NSString *)name body:(id)body type:(NSString *)type;
-(NSString *)description;

@end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
appjam-0.1.8.11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.4 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.3 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.2 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.1 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre13 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre12 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h
appjam-0.1.8.pre5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Notification.h