NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
Can someone confirm that the System Preferences application cannot load a preference pane that is compiled with garbage collection? Even linking to a framework compiled with GC ³supported² causes System Prefs to reject my preference pane (Give an error saying it cannot be loaded). Turn off GC

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 11:52 AM, Tobias Zimmerman wrote: I have googled this and am surprised I haven’t seen references to the issue. Am I doing something wrong (other than not writing dual-mode code), or is there a known incompatibility between GC and the System Preferences? The

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:00 AM, Nick Zitzmann wrote: The PreferencePanes framework in Leopard doesn't support GC for some unknown reason. I believe I filed a bug on this when it was in early beta, and nothing changed in the final. The System Preferences application does not support GC, thus

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 12:08 PM, Bill Bumgarner wrote: The System Preferences application does not support GC, thus framework support is irrelevant. Actually, it is relevant. We used to use the PreferencePanes framework for things having nothing to do with System Preferences, but had to

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
Zitzmann n...@chronosnet.com Cc: Tobias Zimmerman automa...@gmail.com, cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com Subject: Re: NSPrefrencePane with Garbage Collection won't work in System Preferences? On Feb 27, 2009, at 11:00 AM, Nick Zitzmann wrote: The PreferencePanes framework

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:36 AM, Nick Zitzmann wrote: On Feb 27, 2009, at 12:08 PM, Bill Bumgarner wrote: The System Preferences application does not support GC, thus framework support is irrelevant. Actually, it is relevant. We used to use the PreferencePanes framework for things having

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:47 AM, Tobias Zimmerman wrote: Sorry, you have confused me slightly (or perhaps given me false hope). I have 3 targets in my project: (1) the preference pane; (2) a framework; and (3) an application. 1 2 are both dual mode insofar as they can be compiled and run

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 1:16 PM, Bill Bumgarner wrote: Yes; that is a bug -- any framework that can be embedded in a Cocoa application as supported API should be GC enabled. Please file a bug. I did, almost exactly a month before Leopard shipped. The bug # is 5493316, and it was closed as

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 12:24 PM, Nick Zitzmann wrote: On Feb 27, 2009, at 1:16 PM, Bill Bumgarner wrote: Yes; that is a bug -- any framework that can be embedded in a Cocoa application as supported API should be GC enabled. Please file a bug. I did, almost exactly a month before Leopard

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Sean McBride
On 2/27/09 12:18 PM, Bill Bumgarner said: A framework can be dual mode; can support both GC and non-GC operation. This is how all of the frameworks [should be -- seems one slipped through] are compiled on the system. The CHUD.framework is also not GC-friendly. This is a shame, since it

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 12:28 PM, Sean McBride wrote: On 2/27/09 12:18 PM, Bill Bumgarner said: A framework can be dual mode; can support both GC and non-GC operation. This is how all of the frameworks [should be -- seems one slipped through] are compiled on the system. The CHUD.framework is

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
-dev@lists.apple.com cocoa-dev@lists.apple.com Subject: Re: NSPrefrencePane with Garbage Collection won't work in System Preferences? On Feb 27, 2009, at 11:47 AM, Tobias Zimmerman wrote: Sorry, you have confused me slightly (or perhaps given me false hope). I have 3 targets in my project

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Greg Parker
On Feb 27, 2009, at 12:58 PM, Tobias Zimmerman wrote: OK, I'm being dense today, but is it the case that the entire bundle is marked as GC-required if any piece of it requires GC? If I move the app out of the bundle (so it is just the Pane and the framework) does that make it no longer