Hi!

I wanted to subclass NSMutableArray, so that I can easily add some extra methods.

I declared my subclass like this:

@interface FileArray : NSMutableArray
{

}


However, when I run my app, I get this:

StepSync.app/StepSync: Uncaught exception NSInvalidArgumentException, reason: [FileArray-addObject:] should be overridden by subclass

I did override all concrete methods in the easiest possible way, calling super. For addObject I did:

- (void)addObject:(id)anObject
{
  [super addObject:anObject];
}


why is this not enough or not working in any case?


Riccardo



Reply via email to