I know all about separating 10.6 from 10.5 stuff.  The problem is: I've been 
testing on a 10.5 PPC machine, where everything works fine.  On 10.5 Intel, it 
does not finish starting up, just crashes out.  Never gets anywhere that I 
would use something 10.6 related.

Trying to be as clear as possible:

10.6 Intel Snow Leopard - works fine
10.5 Intel Leopard - crashes complaining about NSRunningApplication
10.5 PPC Leopard - works fine

Even if the startup sequence for an app was different between PPC and Intel, 
I'd expect to eventually crash out on both PPC and Intel if it was something 
I'm doing in the source code.

This has got to be something with the way I have the project set up, which is 
about as vanilla as you can get...




On Mar 9, 2010, at 2:45 PM, Steve Christensen wrote:

> The class NSRunningApplication only exists on 10.6 and later. Are you doing a 
> runtime check before using it?
> 
> Class nsRunningAppClass = NSClassFromString(@"NSRunningApplication");
> 
> if (nsRunningAppClass != NULL)
> {
>       // 10.6 case...
>       NSRunningApplication* currentApplication = [nsRunningAppClass 
> currentApplication];
>       ...
> }
> else
> {
>       // 10.5 case...
> }
> 
> 
> 
> On Mar 9, 2010, at 2:30 PM, Steve Mykytyn wrote:
> 
>> Trying to build an app with base SDK 10.6, target OS 10.5.
>> 
>> everything works fine on Intel 10.6, PPC 10.5, but I get a crash on PPC 
>> 10.5.  Any suggestions?
>> 
>> Exception Type:  EXC_BREAKPOINT (SIGTRAP)
>> Exception Codes: 0x0000000000000002, 0x0000000000000000
>> Crashed Thread:  0
>> 
>> Dyld Error Message:
>> Symbol not found: _OBJC_CLASS_$_NSRunningApplication
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to