• 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: cocoa newbie questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa newbie questions


  • Subject: Re: cocoa newbie questions
  • From: Joe Muscara <email@hidden>
  • Date: Mon, 5 Nov 2001 16:01:01 -0600

I see what you mean. My bust for trying to be too concise! Perhaps I should have said something like, "myArray will be released (due to the autorelease in the class method) unless you add any retains."

Joe


On Monday, November 5, 2001, at 03:24 PM, Finlay Dobbie wrote:

On Monday, November 5, 2001, at 09:01 pm, Joe Muscara wrote:

myArray = [NSArray arrayWithArray:someArray]; // myArray will be autoreleased unless you add any retains.

That's misleading. myArray will be autoreleased even if you retain it, it just won't be deallocated from memory unless you release it manually.


References: 
 >Re: cocoa newbie questions (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: [Q] Keyboard repeats stop when I hit another key. How do I get them back?
  • Next by Date: Re: AppleDouble format
  • Previous by thread: Re: cocoa newbie questions
  • Next by thread: gcc errors
  • Index(es):
    • Date
    • Thread