Re: Oddness with NSArray (Most likely some other stupid mistake)
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.