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

2009-10-13 Thread Ben Haller
On 12-Oct-09, at 8:14 PM, Charles Srstka wrote: On Oct 11, 2009, at 9:46 PM, Ben Haller wrote: Most of the bugs I had to fix were related to either using long instead of int, or needing a -finalize method. You should actually probably be using NSInteger instead of either of those these

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

2009-10-13 Thread David Duncan
On Oct 13, 2009, at 7:44 AM, Ben Haller wrote: Yes, but NSInteger is 10.5 or later; I'm keeping 10.4 compatibility for now. Anyhow, those uses were all in my own internal logic, which can stay using 32-bit ints. NSInteger is just a typedef defined in the 10.5+ SDKs. It doesn't

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

2009-10-12 Thread Greg Parker
On Oct 11, 2009, at 7:46 PM, Ben Haller wrote: Besides that, I just needed to change a few retains and releases around, because I was mixing CF calls and Cocoa calls in an inconsistent way in a few places. And that was it; as far as I can tell, it now runs nicely on all the target

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

2009-10-12 Thread Charles Srstka
On Oct 11, 2009, at 9:46 PM, Ben Haller wrote: Most of the bugs I had to fix were related to either using long instead of int, or needing a -finalize method. You should actually probably be using NSInteger instead of either of those these days. There's actually a ConvertCocoa64 script

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

2009-10-11 Thread Dave Keck
 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.

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

2009-10-11 Thread Clark Cox
On Sun, Oct 11, 2009 at 12:23 PM, Dave Keck davek...@gmail.com 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

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

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 3:28 PM, Clark Cox wrote: On Sun, Oct 11, 2009 at 12:23 PM, Dave Keck davek...@gmail.com 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,

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

2009-10-11 Thread Kyle Sluder
On Oct 11, 2009, at 12:44 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: 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

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

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 3:52 PM, Kyle Sluder wrote: On Oct 11, 2009, at 12:44 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: 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

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

2009-10-11 Thread Clark Cox
On Sun, Oct 11, 2009 at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: On 11-Oct-09, at 3:52 PM, Kyle Sluder wrote: On Oct 11, 2009, at 12:44 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: OK, makes sense.  My only question: what's the best way to switch at compile time based

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

2009-10-11 Thread Kyle Sluder
On Oct 11, 2009, at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Yes, but my code also needs to compile as GC-unsupported against the 10.4 SDK, where any GC-specific calls that I might need to make will not compile. Am I missing something? Do you really need to compile

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

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 4:11 PM, Kyle Sluder wrote: On Oct 11, 2009, at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Yes, but my code also needs to compile as GC-unsupported against the 10.4 SDK, where any GC-specific calls that I might need to make will not compile. Am I missing

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

2009-10-11 Thread Clark Cox
On Sun, Oct 11, 2009 at 1:55 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: On 11-Oct-09, at 4:11 PM, Kyle Sluder wrote: On Oct 11, 2009, at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Yes, but my code also needs to compile as GC-unsupported against the 10.4 SDK, where any

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

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 5:28 PM, Clark Cox wrote: On Sun, Oct 11, 2009 at 1:55 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Well, I imagine I'm going to need to use *something* GC-specific -- strong/weak declarations, Not likely. finalize methods, whatever. Implementing finalize methods

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

2009-10-11 Thread Clark Cox
On Sun, Oct 11, 2009 at 2:57 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: On 11-Oct-09, at 5:28 PM, Clark Cox wrote: On Sun, Oct 11, 2009 at 1:55 PM, Ben Haller bhcocoa...@sticksoftware.com wrote:  Well, I imagine I'm going to need to use *something* GC-specific -- strong/weak

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

2009-10-11 Thread Michael Ash
On Sun, Oct 11, 2009 at 4:08 PM, Clark Cox clarkc...@gmail.com wrote: On Sun, Oct 11, 2009 at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: On 11-Oct-09, at 3:52 PM, Kyle Sluder wrote: On Oct 11, 2009, at 12:44 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: OK, makes sense.  

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

2009-10-11 Thread Kyle Sluder
On Oct 11, 2009, at 7:05 PM, Michael Ash michael@gmail.com wrote: Now, I *think* that 10.4 actually has stub versions of all these calls which work correctly for the non-GC case which will always be found on 10.4, but it's manifestly not the case that there aren't any GC-specific calls to

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

2009-10-11 Thread Michael Babin
On Oct 11, 2009, at 2:44 PM, Ben Haller wrote: 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

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

2009-10-11 Thread Mr. George Warner
On Sun, 11 Oct 2009 15:02:22 -0400, Ben Haller bhcocoa...@sticksoftware.com wrote: Hi folks. So my screensaver broke on 10.6, along with everybody else's, and I'm told that's because it has to be compiled for the 64- bit architecture, because System Prefs is a 64-bit app on 10.6. So I