< IObserver > Protocol Reference

#import <IObserver.h>

Inherited by Observer.

List of all members.

Public Member Functions

(BOOL) - compareNotifyContext:
(void) - notifyObserver:
(void) - setNotifyContext:
(void) - setNotifyMethod:


Detailed Description

The interface definition for a PureMVC Observer.

In PureMVC, IObserver implementors assume these responsibilities:

The Observer Pattern as implemented within PureMVC exists to support event driven communication between the application and the actors of the MVC triad.

An Observer is an object that encapsulates information about an interested object with a notification method that should be called when an INotification is broadcast. The Observer then acts as a proxy for notifying the interested object.

Observers can receive Notifications by having their notifyObserver method invoked, passing in an object implementing the INotification interface, such as a subclass of Notification.

See also:
IView, INotification

Member Function Documentation

- (BOOL) compareNotifyContext: (id)  object  

Compare the given object to the notificaiton context object.

Parameters:
object the object to compare.
Returns:
boolean indicating if the notification context and the object are the same.

Reimplemented in Observer.

- (void) notifyObserver: (id< INotification >)  notification  

Notify the interested object.

Parameters:
notification the INotification to pass to the interested object's notification method

Reimplemented in Observer.

- (void) setNotifyContext: (id)  notifyContext  

Set the notification context.

Parameters:
notifyContext the notification context (self) of the interested object

- (void) setNotifyMethod: (SEL)  notifyMethod  

Set the notification method.

The notification method should take one parameter of type INotification

Parameters:
notifyMethod the notification (callback) selector of the interested object


Generated on Wed Dec 24 14:19:08 2008 for PureMVC Objective-C by  doxygen 1.5.7.1