< IModel > Protocol Reference
#import <IModel.h>
Inherited by Model.
List of all members.
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:
-
Maintain a cache of
IProxy instances
-
Provide methods for registering, retrieving, and removing
IProxy instances
Member Function Documentation
| - (BOOL) hasProxy: |
|
(NSString *) |
proxyName |
|
|
Check if a Proxy is registered
- Parameters:
-
- 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:
-
- Returns:
- the
IProxy instance previously registered with the given proxyName.
Reimplemented in Model.