我将通过 Internet对象逐个对象获取我的应用程序的数据,我希望每次更新数据或添加任何对象时,使用该类的当前类都会收到数据已更新的通知。目前我已经到达这里
#import <Foundation/Foundation.h>
@interface MSMutableArray : NSMutableArray
- (void) addObjectInArray:(id)anObject;
@end
然后是实现类
#import "MSMutableArray.h"
@implementation MSMutableArray
- (void) addObjectInArray:(id)anObject
{
[self addObject:anObject];
// Notify the current Class that an element has been added????
}
@end