• 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: Screensaver won't run on 10.6 even after porting to 64-bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screensaver won't run on 10.6 even after porting to 64-bit


  • Subject: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • From: Ben Haller <email@hidden>
  • Date: Sun, 11 Oct 2009 15:44:34 -0400

On 11-Oct-09, at 3:28 PM, Clark Cox wrote:

On Sun, Oct 11, 2009 at 12:23 PM, Dave Keck <email@hidden> wrote:
So I guess System Preferences doesn't like my garbage collection setting
(which is set to "Unsupported"). Do I really need to turn GC on to get my
screensaver to work?

Yes, your screensaver must be GC-supported to support Snow Leopard. This bit me recently too - I wasn't expecting it either. So much for GC making our lives easier, eh? :)

On the bright side, you can make your bundle GC-supported, which means
it contains both retain/release and GC logic. This will at least buy
you 10.5 & 10.6 support in the same bundle, but I imagine you'll have
to compile a separate GC-unsupported version for 10.4, but I'm really
not sure. Hopefully someone else could comment on that.

You can use per-arch build settings to make the ppc and i386 parts GC-unsupported, but make the x86_64 part GC-required; there's no need to build separate bundles.

OK, makes sense. My only question: what's the best way to switch at compile time based on whether GC is enabled for the build? I.e. what do I #if or #ifdef? I could do it based on the arch or the SDK, but if there's a flag specifically for GC I'd rather use that...
Thanks!


Ben Haller
Stick Software

_______________________________________________

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: Screensaver won't run on 10.6 even after porting to 64-bit
      • From: Michael Babin <email@hidden>
    • Re: Screensaver won't run on 10.6 even after porting to 64-bit
      • From: Kyle Sluder <email@hidden>
References: 
 >Screensaver won't run on 10.6 even after porting to 64-bit (From: Ben Haller <email@hidden>)
 >Re: Screensaver won't run on 10.6 even after porting to 64-bit (From: Dave Keck <email@hidden>)
 >Re: Screensaver won't run on 10.6 even after porting to 64-bit (From: Clark Cox <email@hidden>)

  • Prev by Date: Where to send different messages while RunLoop is running
  • Next by Date: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • Previous by thread: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • Next by thread: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • Index(es):
    • Date
    • Thread