Re: Get file argument
Re: Get file argument
- Subject: Re: Get file argument
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sun, 04 Sep 2016 23:39:09 +0200
> Le 4 sept. 2016 à 20:48, Jens Alfke <email@hidden> a écrit :
>
>
>> On Sep 4, 2016, at 4:56 AM, Andreas Falkenhahn <email@hidden> 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 its own AppleEvent handler for the ‘odoc’ event.
>
> I do still feel that your attempt to build this 3rd-party code wrapper by avoiding the normal Cocoa application/event loop is a mistake. You’re going to run into one problem after another by going completely against the grain of the framework like this.
>
Whatever you do, you still have to pull the incoming events, else you Apple Event won’t be dispatched. As the canonical way to do that is though NSApp, I don’t now if this is possible.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden