Get launch options at runtime. How?

Hello all!

Is there any way to get launchOptions at runtime? When application already launched and working. It means not in the methods "willFinishLaunchingWithOptions" and "didFinishLaunchingWithOptions". Is this launchOptions, that passed into this application delegate methods, stored somewhere else? If yes - how to get them?

My application is written on C++ and need to get independently when application is already running.

Replies

Is this launchOptions, that passed into this application delegate methods, stored somewhere else?

No. Well, there may be some way to get some of them, but the answer in the general case is “No.”

It’s not hard to work around this, however. Implement this method in your app delegate and then stash a copy of the options you care about in a location of your choosing.

ps What UI framework are you using?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Thx. Not using any of UI frameworks. Working with C++/Objective-C project. There are own C++ UI.

Add a Comment