Re: NSWorkspace -launchApplication fails to launch, but no error
Re: NSWorkspace -launchApplication fails to launch, but no error
- Subject: Re: NSWorkspace -launchApplication fails to launch, but no error
- From: "Luca C." <email@hidden>
- Date: Sat, 21 Mar 2009 14:08:19 +0100
Erg,
2009/3/21 Erg Consultant <email@hidden>
> I try to launch an application by passing a full POSIX path to NSWorkspace
> -launchApplication: on 10.3.9 but it fails.
>
> I have built my app using the 10.4 SDK and tried it targeting both 10.3 &
> 10.4 as deployment since I have some newer 10.4 routines which won't work on
> 10.3. I also check each API for NULL before calling it.
>
> When NSWorkspace -launchApplication:runs, it returns YES indicating launch,
> but my app never runs. Double-clicking my app runs it and then it quits
> immediately with no errors. I've checked all my frameworks and weak linking,
> but -launchApplication doesn't work.
>
> My app runs fine on 10.4. and 10.5. But on 10.3 won't launch.
>
> What gives?
I can't figure out you problem, so my advice is: try using
LSOpenApplication. Take a look here
<
http://developer.apple.com/DOCUMENTATION/Carbon/Reference/LaunchServicesReference/Reference/reference.html#//apple_ref/c/func/LSOpenApplication
>
The Process Manager's LaunchApplication works well, too.
<
http://developer.apple.com/DOCUMENTATION/Carbon/Reference/Process_Manager/Reference/reference.html#//apple_ref/c/func/LaunchApplication
>
--Luca C.
_______________________________________________
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