Re: Memory Management
Re: Memory Management
- Subject: Re: Memory Management
- From: Ben Dougall <email@hidden>
- Date: Mon, 28 Jul 2003 12:42:36 +0100
On Sunday, July 27, 2003, at 10:37 pm, John MacMullin wrote:
I have been reading in Cocoa in a Nutshell, at page 9 and 14, the use
of memory management using the following pattern:
companyRecords = [[[NSMutableArray alloc] init] retain];
that's the 2nd time i've seen that type of structure just recently.
surely it's incorrect? companyRecords will have a retain count of 2
after that line, whereas a retain count of 1 after that line is what'd
be required? it shouldn't have the retain part?
_______________________________________________
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.