Re: What init declaration class needs?
Re: What init declaration class needs?
- Subject: Re: What init declaration class needs?
- From: Robert Cerny <email@hidden>
- Date: Fri, 13 Feb 2004 15:31:22 +0100
Hi,
I don't understand your question at all, but you should test if the
[super init] was successfull.
- (listCollection *) init
{
if (self == [super init])
{
//your code here
return self;
}
return nil;
}
Robert
On 13.2.2004, at 14:30, Roberto Sobachi wrote:
- (listCollection *) init
{
[super init];
list = [[NSMutableArray alloc] init];
return self;
}
What does it need?
If I try to know the count of the Array from another class, I can't, it
returns 0, also if I add objects to it.
Why?
Roberto Sobachi
developer
http://www.xidiar.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.