gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: starting an app bundle natively - NSWorkspace launchApplication


From: Fred Kiefer
Subject: Re: starting an app bundle natively - NSWorkspace launchApplication
Date: Wed, 3 Jul 2024 08:15:38 +0200


> Am 02.07.2024 um 22:15 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
> 
> Hi,
> 
> is there a way to start an application - as in GNUstep or mac app bundle - 
> natively from?
> Something that would be the equivalent of gopen/openapp essentially.
> 
> To start a normal executable I can use NSTask.
> I see two ways to implement it - search for the executable (GNUstep has tools 
> equivalents, but not mac) and then run NSTask on it as a standard executable 
> or use NSTask with openapp and the name as argument, but both are "kludges" 
> in my opinion, involving some work.
> 
> is NSWorkspace's launchApplication the best answer?

Yes, to me this sounds like the right way to go.

Fred


reply via email to

[Prev in Thread] Current Thread [Next in Thread]