Re: Help with Basics
Re: Help with Basics
- Subject: Re: Help with Basics
- From: Graham Cox <email@hidden>
- Date: Wed, 24 Nov 2010 12:23:18 +1100
On 24/11/2010, at 3:42 AM, Rounak Jain wrote:
> "If you allocate an object using alloc, you need to take responsibility for releasing it when you’re done.
> However, if class methods are used, then there is no need to worry about releasing objects because they are auto-released."
This is nonsense. If the memory management rules could be boiled down to this statement, there wouldn't be a need to have a whole chapter devoted to it.
Read the memory management rules, and learn them.
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html
--Graham_______________________________________________
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