Re: starting an app bundle natively - NSWorkspace launchApplication
Fred Kiefer <[email protected]> Wed, 3 Jul 2024 08:15:38 +0200
| Newsgroups | gmane.comp.lib.gnustep.devel |
|---|---|
| Message-ID | <[email protected]> |
> Am 02.07.2024 um 22:15 schrieb Riccardo Mottola = <[email protected]>: >=20 > Hi, >=20 > 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. >=20 > 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. >=20 > is NSWorkspace's launchApplication the best answer? Yes, to me this sounds like the right way to go. Fred=