Sha256: ed008cdd76392845a623f04ca21ffa4f7820d92091b87baeeb4e72aea739daf3

Contents?: true

Size: 1.24 KB

Versions: 34

Compression:

Stored size: 1.24 KB

Contents

/**
 * The interface definition for a PureMVC Proxy.
 *
 * <P>
 * In PureMVC, <code>IProxy</code> implementors assume these responsibilities:</P>
 * <UL>
 * <LI>Implement a common method which returns the name of the Proxy.</LI>
 * <LI>Provide methods for setting and getting the data object.</LI>
 * </UL>
 * <P>
 * Additionally, <code>IProxy</code>s typically:</P>
 * <UL>
 * <LI>Maintain references to one or more pieces of model data.</LI>
 * <LI>Provide methods for manipulating that data.</LI>
 * <LI>Generate <code>INotifications</code> when their model data changes.</LI>
 * <LI>Expose their name as a <code>static method</code> called <code>NAME</code>, if they are not instantiated multiple times.</LI>
 * <LI>Encapsulate interaction with local or remote services used to fetch and persist model data.</LI>
 * </UL>
 */
@protocol IProxy

/**
 * Get the data object
 * 
 * @return the data as type id
 */
-(id)data;

/**
 * Get the Proxy name
 * 
 * @return the Proxy instance name
 */
-(NSString *)proxyName;

/**
 * Called by the Model when the Proxy is registered
 */
-(void)onRegister;

/**
 * Called by the Model when the Proxy is removed
 */ 
-(void)onRemove;

/**
 * Set the data object
 * 
 * @param data the data object
 */
-(void)setData:(id)data;

@end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
appjam-0.1.8.11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.4 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.3 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.2 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.1 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre13 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre12 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre11 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre10 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre9 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre7 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre6 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h
appjam-0.1.8.pre5 lib/appjam/generators/project/Classes/org/puremvc/objectivec/interfaces/IProxy.h