Sha256: 32587f3d60c9332df464f6c15814b681a226988bef049fd4c76ceb80290a3414

Contents?: true

Size: 1.26 KB

Versions: 34

Compression:

Stored size: 1.26 KB

Contents

//
//  Observer.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 "IObserver.h"

/**
 * A base <code>IObserver</code> implementation.
 * 
 * <P> 
 * An <code>Observer</code> is an object that encapsulates information
 * about an interested object with a method that should 
 * be called when a particular <code>INotification</code> is broadcast. </P>
 * 
 * <P>
 * In PureMVC, the <code>Observer</code> class assumes these responsibilities:
 * <UL>
 * <LI>Encapsulate the notification (callback) method of the interested object.</LI>
 * <LI>Encapsulate the notification context (this) of the interested object.</LI>
 * <LI>Provide methods for setting the notification method and context.</LI>
 * <LI>Provide a method for notifying the interested object.</LI>
 * </UL>
 * 
 * @see View, Notification
 */
@interface Observer : NSObject <IObserver> {
	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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
appjam-0.1.8.pre3 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.8.pre lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.7.1 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.4 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.3 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.2 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.1 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.0.pre11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.0.pre9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.0.pre6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/patterns/observer/Observer.h
appjam-0.1.0.pre4 lib/appjam/generators/Classes/org/puremvc/objectivec/patterns/observer/Observer.h