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

Re: Autorelease question


  • Subject: Re: Autorelease question
  • From: Dave Hersey <email@hidden>
  • Date: Thu, 3 Apr 2008 22:43:04 -0400

why do you think I didn't read all of that documentation? I did but, alas, maybe I'm
not smart enough and I can't tell which object is autoreleased and which one not
that was in principle my initial question
I doubt that it's that you're not smart enough.

At the very least, you need to read about the Create Rule and the Get Rule if you're *only* confused about those:

http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html

However, I'd recommend going over the Apple Memory Management docs or the below references (which you may find clearer) until it gets boring and repetitive. If there's anything that you don't understand in these docs, they'll probably cost you a lot of development time.

Memory Management with Cocoa/WebObjects
http://stepwise.com/Articles/Technical/MemoryManagement.html

Very simple rules for memory management in Cocoa
http://stepwise.com/Articles/Technical/2001-03-11.01.html

This comes up a LOT on the list, so a search at http://www.cocoabuilder.com may be helpful if you're still stuck.

- d

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Autorelease question (From: Dmitry Markman <email@hidden>)
 >Re: Autorelease question (From: Robert Claeson <email@hidden>)
 >Re: Autorelease question (From: Jens Alfke <email@hidden>)
 >Re: Autorelease question (From: Dmitry Markman <email@hidden>)
 >Re: Autorelease question (From: Chris Suter <email@hidden>)
 >Re: Autorelease question (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: NSCondition easter-egg hunt
  • Next by Date: Re: Autorelease question
  • Previous by thread: Re: Autorelease question
  • Next by thread: Re: Autorelease question
  • Index(es):
    • Date
    • Thread