// // Observer.h // PureMVC_ObjectiveC // // PureMVC Port to ObjectiveC by Brian Knorr // PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved. // #import #import "IObserver.h" /** * A base IObserver implementation. * *

* An Observer is an object that encapsulates information * about an interested object with a method that should * be called when a particular INotification is broadcast.

* *

* In PureMVC, the Observer class assumes these responsibilities: *

* * @see View, Notification */ @interface Observer : NSObject { SEL notifyMethod; id notifyContext; } @property SEL notifyMethod; @property(nonatomic, retain) id notifyContext; +(id)withNotifyMethod:(SEL)notifyMethod notifyContext:(id)notifyContext; -(id)initWithNotifyMethod:(SEL)notifyMethod notifyContext:(id)notifyContext; @end