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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to