Re: Memory Management Q. 1 and 2
Re: Memory Management Q. 1 and 2
- Subject: Re: Memory Management Q. 1 and 2
- From: "Michael Ash" <email@hidden>
- Date: Sun, 21 Dec 2008 16:47:53 -0500
On Sun, Dec 21, 2008 at 3:04 PM, Andreas Mayer <email@hidden> wrote:
>
> Am 21.12.2008 um 18:37 Uhr schrieb Bill Bumgarner:
>
>> Though still useful to know the above, for new code there is generally no
>> reason to avoid GC:
>>
>>
>> http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Introduction.html
>
> Unless you want your code to run on anything before 10.5 - or on an iPhone
> for that matter.
Or if you want to store NSInvocation objects long-term, or if you need
low latency processing, or if you want to be able to safely take the
address of a global variable, or use the bytes pointer of a temporary
NSData object without jumping through hoops, or....
GC can be nice, but there are a *ton* of reasons why someone might not
want to use it.
Mike
_______________________________________________
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