• 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: Oddness with NSArray (Most likely some other stupid mistake)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oddness with NSArray (Most likely some other stupid mistake)


  • Subject: Re: Oddness with NSArray (Most likely some other stupid mistake)
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 11 Nov 2002 02:22:27 +0100

On Saturday, November 9, 2002, at 11:50 , James Farwell wrote:

I am having problems with the following code:

@implementation MyController

- (void)awakeFromNib
{
children = [NSMutableArray arrayWithCapacity:10];
[self addNewChild];
}

Memory management 101. Use

children=[[NSMutableArray alloc] init];

instead.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Oddness with NSArray (Most likely some other stupid mistake) (From: James Farwell <email@hidden>)

  • Prev by Date: NSTableView and custom NSTableColumn subclass crash
  • Next by Date: Re: Oddness with NSArray (Most likely some other stupid mistake)
  • Previous by thread: Oddness with NSArray (Most likely some other stupid mistake)
  • Next by thread: Re: Oddness with NSArray (Most likely some other stupid mistake)
  • Index(es):
    • Date
    • Thread