Problem overriding NSMutableArray?
Problem overriding NSMutableArray?
- Subject: Problem overriding NSMutableArray?
- From: Michael Rogers <email@hidden>
- Date: Wed, 30 May 2001 16:27:59 -0500
I have a class called PhotoAlbum that subclasses NSMutableArray, but
when I call either
[self objectAtIndex:0];
or, just for completeness,
[super objectAtIndex:0];
within a method of NSMutableArray, I get this message:
May 30 16:01:49 PhotoAlbum[880] An uncaught exception was raised
May 30 16:01:49 PhotoAlbum[880] *** -objectAtIndex: only defined for
abstract class. Define -[PhotoAlbumArray objectAtIndex:]!
May 30 16:01:49 PhotoAlbum[880] *** Uncaught exception:
<NSInvalidArgumentException> *** -objectAtIndex: only defined for
abstract class. Define -[PhotoAlbumArray objectAtIndex:]!
I find this somewhat confusing, because NSMutableArray isn't abstract.