So I have this Class called "LibraryItem". It basically needs to store a mutable array along with a few strings.
So I declared it like so:
But when I call the "count" method the console shows:
Am I doing something wrong? Thanks,
Russell
So I declared it like so:
Code:
@interface LibraryItem : NSMutableArray {
NSString *itemType;
NSString *itemPath;
}
- (id)initWithType:(NSString *)itemTypeToSet Path:(NSString *)path;
- (void)setItemType:(NSString *)newType;
- (void)setItemPath:(NSString *)newPath;
- (NSString *)getItemType;
- (NSString *)getItemPath;
@end
Code:
*** -[NSArray count]: method only defined for abstract class. Define -[LibraryItem count]!
Am I doing something wrong? Thanks,
Russell