Ok, so I have the code below (Objective-C FYI) and I was wondering if I want to create an NSMutableArray of c_data
objects, how would I go about doing that? It\'s s
[NSMutableArray addObject:[[[c_data alloc] init] autorelease]];
Objective-C arrays aren't typed. It seems you have some C++ unlearning to do.
On a related note, your inits are pretty bad. You need to call super init as well, as such:
- (id)init {
self = [super init];
if (self != nil) {
//Initialize here.
}
return self;
}