• 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: Garbage Collection for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage Collection for Cocoa?


  • Subject: Re: Garbage Collection for Cocoa?
  • From: Martin Häcker <email@hidden>
  • Date: Sun, 2 Nov 2003 15:19:56 +0100

At 23:42 Uhr +1300 02.11.2003, Keith Bauer wrote:
I've been idly wondering whether it would be possible to get garbage collection in Objective C.

The Boehm-Demers-Weiser collector (used by GCJ, d2c, &c) seems quite stable on Mac OS X these days, so hopefully it would just be a matter of slotting GC_malloc into appropriate places in the ObjC runtime...

Does anyone know where I should start? Override +alloc for NSObject maybe? Or even lower -- somehow replace NSAllocateObject? Or lower still -- actually replace the system malloc?

For where to start, you could have a look at GnuStep, as they employ the Garbace Collector for there version of the Foundation for quite some time now.

Are there any obvious pitfalls awaiting me here?

Perhaps they can tell you more on that subject.

cu Martin
--
dont.wanna.tell
[ot]coder - hehe
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Garbage Collection for Cocoa? (From: Keith Bauer <email@hidden>)

  • Prev by Date: Re: Determining the scroll position of an NSTextView?
  • Next by Date: Re: Garbage Collection for Cocoa?
  • Previous by thread: Re: Garbage Collection for Cocoa?
  • Next by thread: Re: Garbage Collection for Cocoa?
  • Index(es):
    • Date
    • Thread