Description: the class used to get messages about table proxy data source update.
#import <Foundation/Foundation.h> #import "NuGridUpdateObserver.h" // Class implementing the NuGridUpdateObserver protocol @interface gridUpdateObserver : NSObject<NuGridUpdateObserver> // Name of object that receives messages @property (nonatomic, assign) NSString *name; // Called after update -(void) afterUpdate: (NSString *)key; // Called before update -(void) beforeUpdate: (NSString *)key; @end
#import "gridUpdateObserver.h" @implementation gridUpdateObserver { int m_name; } // Initializes class instance with specified object name -(id) initWithName: (NSString *)name { if ((self = [super init])) { // Set object name value m_name = name; } return self; } // Called after update -(void) afterUpdate: (NSString *)key { NSLog(@"Actions of the "%@" object executed after proxy data source with the %@ key", m_name, key); } // Called before update -(void) beforeUpdate: (NSString *)key { NSLog(@"Actions of the "%@" object executed before proxy data source update with the %@ key", m_name, key); } @end
See also: