• 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: Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Memory Management (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: Loading nib in a dynamically loaded bundle
  • Next by Date: PB experiences framework name confusion for older projects
  • Previous by thread: Re: Memory Management
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread