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

Re: Get file argument


  • Subject: Re: Get file argument
  • From: Andreas Falkenhahn <email@hidden>
  • Date: Sun, 04 Sep 2016 23:43:53 +0200

On 04.09.2016 at 20:48 Jens Alfke wrote:



> 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

Any pointers? I don't see anything that could help me here but that document is
quite confusing anyway with so many things deprecated...

> 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.

Don't worry, I'm pretty much done already and it's working fine.
And I'm not the only one who is using a custom solution. Check out
popular toolkits like SDL, GLFW, wxWidgets... they all do it one or
another. And even Apple says that it's legit:

"Override run if you want the app to manage the main event loop differently
than it does by default. (This a critical and complex task, however, that you
should only attempt with good reason.)"

I just wish there'd be some more information on how exactly this "critical
and complex task" should be implemented in practice ;)

--
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


References: 
 >Get file argument (From: Andreas Falkenhahn <email@hidden>)
 >Re: Get file argument (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Get file argument
  • Next by Date: Init in Swift
  • Previous by thread: Re: Get file argument
  • Next by thread: Init in Swift
  • Index(es):
    • Date
    • Thread