Sha256: 968a433f556cbc5f7387a1e2ce8a483e2217fcadef3a4614f84c0cf87d8d62e9

Contents?: true

Size: 1.55 KB

Versions: 34

Compression:

Stored size: 1.55 KB

Contents

/**
 * The interface definition for a PureMVC Notification.
 *
 * <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 IView, IObserver
 */
@protocol INotification

/**
 * Get the body of the <code>INotification</code> instance
 */
-(id)body;

/**
 * Get the name of the <code>INotification</code> instance. 
 * No setter, should be set by constructor only
 */
-(NSString *)name;

/**
 * Get the type of the <code>INotification</code> instance
 */
-(NSString *)type;

/**
 * Set the body of the <code>INotification</code> instance
 */
-(void)setBody:(id)body;

/**
 * Set the type of the <code>INotification</code> instance
 */
-(void)setType:(NSString *)type;

/**
 * Get the string representation of the <code>INotification</code> instance
 */
-(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/interfaces/INotification.h
appjam-0.1.8.10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.4 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.3 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.2 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.1 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre13 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre12 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h
appjam-0.1.8.pre5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/INotification.h