Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
- Subject: Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
- From: Jens Alfke <email@hidden>
- Date: Wed, 30 Mar 2016 13:11:28 -0400
> On Mar 30, 2016, at 1:47 AM, Motti Shneor <email@hidden> wrote:
>
> But still, If a package file was double-clicked to launch the Installer App, and it received an “Open File” event, is there a way to get to the file later on, without actually catching this event?
No, not as far as I know. It’s an ‘odoc’ AppleEvent sent to the app at launch time, and handled by NSApplication, and that info isn’t kept around for later because there isn’t generally any need for it.
I think you’ve got an Installer-specific issue after all.
—Jens
_______________________________________________
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