Re: starting an app bundle natively - NSWorkspace launchApplication
Fred Kiefer <[email protected]> Thu, 4 Jul 2024 07:30:16 +0200
| Newsgroups | gmane.comp.lib.gnustep.devel |
|---|---|
| Message-ID | <[email protected]> |
> Am 04.07.2024 um 00:06 schrieb Riccardo Mottola = <[email protected]>: >=20 >=20 > Fred Kiefer wrote: >>> is NSWorkspace's launchApplication the best answer? >> Yes, to me this sounds like the right way to go. >=20 > indeed, it works for running. It didn't yesterday because of some = stupid mistake of mine. >=20 > However, GWorkspace has also "open with" where one wants to open = certain files wtih a certain application. > So I can't just "open the file" because it would open the default one. > I do need to give the file name parameter. is it possible? This could be handled by openFile:withApplication: in the same class. = What I don=E2=80=99t see is how you could use any of this mechanisms for = command completion but that is another question. Cheers, Fred