• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What init declaration class needs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >What init declaration class needs? (From: Roberto Sobachi <email@hidden>)

  • Prev by Date: Re: static objects "autoreleased with no pool in place - just leaking"
  • Next by Date: Re: DictionaryWithContentsOfURL
  • Previous by thread: What init declaration class needs?
  • Next by thread: Re: What init declaration class needs?
  • Index(es):
    • Date
    • Thread