Linking Growl Framework in Garbage Collected Leopard App

The Growl forums have moved to Google Groups, this forum is read only.
Locked
cacaosteve
Harmless
Posts: 2
Joined: Sat Oct 27, 2007 4:50 am

Linking Growl Framework in Garbage Collected Leopard App

Post by cacaosteve »

I can't link against the Growl framework in my garbage collected Leopard app unless Growl is garbaged collected as well. So, I compiled Growl as garbaged collected. Now, it looks like System Preferences doesn't accept this:

10/26/07 9:46:17 PM [0x0-0x257257].com.Growl.GrowlHelperApp[7410] objc[7410]: '/System/Library/Frameworks/PreferencePanes.framework/Versions/A/PreferencePanes' was not compiled with -fobjc-gc or -fobjc-gc-only, but the application requires GC
10/26/07 9:46:17 PM [0x0-0x257257].com.Growl.GrowlHelperApp[7410] objc[7410]: *** GC capability of application and some libraries did not match
10/26/07 9:46:21 PM com.apple.launchd[94] ([0x0-0x257257].com.Growl.GrowlHelperApp[7410]) Exited abnormally: Illegal instruction

Anyone linking against Growl on a garbage collected app?
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

All of Growl shouldn't be garbage-collected. System Preferences wouldn't be a likely GC candidate because then all preference panes would have to be GC (it's not mix and match opt-in.) Only the framework itself should be recompiled, and really you should wait until we provide a GC variant of the framework (all 3rd party frameworks are going to have such an adjustment phase.)
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

If you want to build the framework by hand to make it gc, that's cool. If any changes are required, let us know, we'll gladly accept patches.
cacaosteve
Harmless
Posts: 2
Joined: Sat Oct 27, 2007 4:50 am

Post by cacaosteve »

I am compiling Growl-WithInstaller.framework, course. The solution is to compile it with GC on, then copy the non-GC Growl.prefPane.zip into Growl-WithInstaller.framework/Versions/A/Resources.

It works!!!!!
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

cacaosteve wrote:I am compiling Growl-WithInstaller.framework, course. The solution is to compile it with GC on, then copy the non-GC Growl.prefPane.zip into Growl-WithInstaller.framework/Versions/A/Resources.

It works!!!!!
No of course ;) but glad to hear it works. Updated framework variants are on my schedule, but won't be until 1.1.3.
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
Locked