Sha256: b24f2cf463cb4bf0428b7daccf101e8e5cb17b725322c7f711b02f03fb283323
Contents?: true
Size: 1.3 KB
Versions: 34
Compression:
Stored size: 1.3 KB
Contents
// // View.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 "IView.h" /** * A Singleton <code>IView</code> implementation. * * <P> * In PureMVC, the <code>View</code> class assumes these responsibilities: * <UL> * <LI>Maintain a cache of <code>IMediator</code> instances.</LI> * <LI>Provide methods for registering, retrieving, and removing <code>IMediators</code>.</LI> * <LI>Notifiying <code>IMediators</code> when they are registered or removed.</LI> * <LI>Managing the observer lists for each <code>INotification</code> in the application.</LI> * <LI>Providing a method for attaching <code>IObservers</code> to an <code>INotification</code>'s observer list.</LI> * <LI>Providing a method for broadcasting an <code>INotification</code>.</LI> * <LI>Notifying the <code>IObservers</code> of a given <code>INotification</code> when it broadcast.</LI> * </UL> * * @see Mediator, Observer, Notification */ @interface View : NSObject <IView> { NSMutableDictionary *mediatorMap, *observerMap; } @property(nonatomic, retain) NSMutableDictionary *mediatorMap, *observerMap; -(id)init; -(void)initializeView; +(id<IView>)getInstance; @end
Version data entries
34 entries across 34 versions & 1 rubygems