Skip navigation.
 
mlRe: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
FROM : George Greene
DATE : Sun Feb 03 23:21:48 2008

thanks Bill,

george.

On Feb 3, 2008, at 5:20 PM, Bill Bumgarner wrote:

> On Feb 3, 2008, at 2:14 PM, George Greene wrote:

>> thanks, scott had told me this as well, but i thought it was still 
>> enabled from the last program i had done, the Cocoa Application 
>> Tutorial.  (i forgot it was a project setting. i, for some reason, 
>> was thinking it was an XCode preferences setting.
>>
>> ok, it works perfectly now that i've enable garbage collection for 
>> the project.
>>
>> for those who want to know:
>> Project > Edit Project Settings
>>  then
>>      Section GCC 4.0-Code generation
>>          Objective-C Garbage collection          supported [-
>> fobjc-gc]

>
> Since your code is not dual mode, set the build setting to GC 
> only.  The compiler will generate slightly faster/smaller code in 
> that it doesn't have to emit the goop necessary to allow the code 
> to run dual mode...
>
> b.bum