Erg,

2009/3/21 Erg Consultant <erg_consult...@yahoo.com>

> 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to