Re: Get file argument

2016-09-04 Thread Andreas Falkenhahn
On 04.09.2016 at 20:48 Jens Alfke wrote: > On Sep 4, 2016, at 4:56 AM, Andreas Falkenhahn wrote: > Is there also a way to get the file argument without having an NSApp, > i.e. can my program somehow obtain the file argument *before* creating > the NSApp object or is that impossible? > Perha

Re: Get file argument

2016-09-04 Thread Jean-Daniel Dupas
> Le 4 sept. 2016 à 20:48, Jens Alfke a écrit : > > >> On Sep 4, 2016, at 4:56 AM, Andreas Falkenhahn >> wrote: >> >> Is there also a way to get the file argument without having an NSApp, >> i.e. can my program somehow obtain the file argument *before* creating >> the NSApp object or is that

Re: Get file argument

2016-09-04 Thread Jens Alfke
> On Sep 4, 2016, at 4:56 AM, Andreas Falkenhahn wrote: > > Is there also a way to get the file argument without having an NSApp, > i.e. can my program somehow obtain the file argument *before* creating > the NSApp object or is that impossible? Perhaps through LaunchServices, or by implementing

Get file argument

2016-09-04 Thread Andreas Falkenhahn
When double-clicking a document file that is to be opened with my app, the path to this file isn't passed in argv[] but can be obtained by implementing "openFile" in the NSApplicationDelegate. Is there also a way to get the file argument without having an NSApp, i.e. can my program somehow obtain