Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Obj-C Garbage Collection coming to Leopard!

Obj-C Garbage Collection coming to Leopard!
Thread Tools
smitty825
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status: Offline
Reply With Quote
Jan 15, 2006, 11:16 AM
 
(First, for the record, no, I do not have a life)

I was reading through the man page on gcc in 10.4.4 and I came across this:

"-fobjc-gc
Enable garbage collection (GC) for Objective-C objects. The
resulting binary can only be used on Mac OS X 10.5 (Leopard) and
later systems, due to additional functionality needed in the (NeXT)
Objective-C runtime
"

This implies to me that we might not ever have to see posts about Obj-C memory handling in the future!
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 15, 2006, 04:22 PM
 
That's rad, just as long as we don't have to use it (for those of us who garner perverse pleasure from retaining and releasing).
[Wevah setPostCount:[Wevah postCount] + 1];
     
nforcer
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Jan 21, 2006, 04:34 PM
 
This has been obvious for a while now. Ever since 10.4 came out, NSObject had documentation for things like:
-----
- (void)finalize

Called by the garbage collector when the receiver is not referenced by other objects.
Note: Garbage collection is not available for use in Mac OS X v10.4, nor in earlier versions.
-----
And finally, post 1000.
Genius. You know who.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:56 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,