Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
- Subject: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
- From: Steve Christensen <email@hidden>
- Date: Tue, 09 Mar 2010 14:45:31 -0800
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@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