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: Thu, 4 Jul 2024 07:30:16 +0200


> Am 04.07.2024 um 00:06 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
> 
> 
> Fred Kiefer wrote:
>>> is NSWorkspace's launchApplication the best answer?
>> Yes, to me this sounds like the right way to go.
> 
> indeed, it works for running. It didn't yesterday because of some stupid 
> mistake of mine.
> 
> 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’t see is how you could use any of this mechanisms for command completion 
but that is another question.

Cheers,
Fred




reply via email to

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