• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWorkspace -launchApplication fails to launch, but no error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSWorkspace -launchApplication fails to launch, but no error (From: Erg Consultant <email@hidden>)

  • Prev by Date: Re: Send events to AppleScript
  • Next by Date: Is it a "Value" or an "Object" ?
  • Previous by thread: NSWorkspace -launchApplication fails to launch, but no error
  • Next by thread: Avoiding Flicker with OpenGL View when Moving Divider of a Split View
  • Index(es):
    • Date
    • Thread