• 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
Get file argument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get file argument


  • Subject: Get file argument
  • From: Andreas Falkenhahn <email@hidden>
  • Date: Sun, 04 Sep 2016 13:56:14 +0200

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 the file argument *before* creating
the NSApp object or is that impossible?

--
Best regards,
 Andreas Falkenhahn                          mailto:email@hidden

_______________________________________________

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


  • Follow-Ups:
    • Re: Get file argument
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: formatted strings in Swift
  • Next by Date: Re: Get file argument
  • Previous by thread: Re: formatted strings in Swift
  • Next by thread: Re: Get file argument
  • Index(es):
    • Date
    • Thread