On Dec 21, 2008, at 9:09 AM, Nick Rogers wrote:

These are 2 questions in a series of more upcoming ones.

All memory management questions should be answered by this document:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html >
with the most concise summary of the rules given at:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html >
For situations such as yours, this article may be of particular help:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmPractical.html >

For an immediate check of how well your code abides by the rules, use the LLVM Clang Static Analyzer:
        <http://clang.llvm.org/StaticAnalysis.html>
In many cases, this will tell you much more quickly than any mailing list can where you have problems with memory management.

It is rare that these resources don't address any question you might have on memory management; make sure you exhaust these first...

mmalc

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to