• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"


  • Subject: Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 3 Feb 2008 14:20:41 -0800

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
_______________________________________________

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


  • Follow-Ups:
    • Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
      • From: George Greene <email@hidden>
References: 
 >newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C" (From: George Greene <email@hidden>)
 >Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C" (From: "Kyle Sluder" <email@hidden>)
 >Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C" (From: George Greene <email@hidden>)

  • Prev by Date: Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
  • Next by Date: Re: receiving a file on app startup
  • Previous by thread: Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
  • Next by thread: Re: newbie: question: i have a memory leak: obj-c 2.0: modification of program in "Cocoa with Objective-C"
  • Index(es):
    • Date
    • Thread