• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to find the file (url) that was double-clicked to open my Cocoa Application? (From: Motti Shneor <email@hidden>)

  • Prev by Date: Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
  • Next by Date: Re: Strange Delay
  • Previous by thread: Re: How to find the file (url) that was double-clicked to open my Cocoa Application?
  • Next by thread: Strange Delay
  • Index(es):
    • Date
    • Thread