Re: Maintaining a List of instances of a class
Re: Maintaining a List of instances of a class
- Subject: Re: Maintaining a List of instances of a class
- From: "Paolo Manna" <email@hidden>
- Date: Wed, 18 Jul 2007 14:35:29 +0100
Ooops, forgot the return value! The code should read:
- (id)init
{
if ([super init]) {
if (!instanceList)
instanceList = [[NSMutableArray alloc] initWithCapacity: 1];
[instanceList addObject: self];
// ... other initializations...
}
return self;
}
Paolo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden