< IModel > Protocol Reference

#import <IModel.h>

Inherited by Model.

List of all members.

Public Member Functions

(BOOL) - hasProxy:
(void) - registerProxy:
(id< IProxy >) - removeProxy:
(id< IProxy >) - retrieveProxy:


Detailed Description

The interface definition for a PureMVC Model.

In PureMVC, IModel implementors provide access to IProxy objects by named lookup.

An IModel assumes these responsibilities:


Member Function Documentation

- (BOOL) hasProxy: (NSString *)  proxyName  

Check if a Proxy is registered

Parameters:
proxyName 
Returns:
whether a Proxy is currently registered with the given proxyName.

Reimplemented in Model.

- (void) registerProxy: (id< IProxy >)  proxy  

Register an IProxy instance with the Model.

Parameters:
proxy an object reference to be held by the Model.

Reimplemented in Model.

- (id<IProxy>) removeProxy: (NSString *)  proxyName  

Remove an IProxy instance from the Model.

Parameters:
proxyName name of the IProxy instance to be removed.
Returns:
the IProxy that was removed from the Model

Reimplemented in Model.

- (id<IProxy>) retrieveProxy: (NSString *)  proxyName  

Retrieve an IProxy instance from the Model.

Parameters:
proxyName 
Returns:
the IProxy instance previously registered with the given proxyName.

Reimplemented in Model.


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