Re: Memory Management Q. 1 and 2
Re: Memory Management Q. 1 and 2
- Subject: Re: Memory Management Q. 1 and 2
- From: mmalc Crawford <email@hidden>
- Date: Sun, 21 Dec 2008 09:38:27 -0800
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@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