Re: Launching another app with command line arguments
Re: Launching another app with command line arguments
- Subject: Re: Launching another app with command line arguments
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Sun, 21 Jun 2020 01:16:48 +0200
Thanks a lot for your reponse.
Yes , it is sandboxed.
... Argh, the *last* line of the docs of configuration.arguments tell that
those are ignored! :-(
So, the new question is: is there any easy way how my app A can launch my app B
and pass a simple piece of info from A to B, such as a boolean flag or an
integer?
I googled a bit, and XPC or mach messages seems way too complicated for the
simple flag I'd like to pass.
I couldn't determine whether UserDefaults might work (since both apps are
sandboxed).
Does anyone have any ideas?
>
>>
>> That works fine, *except* the command line arguments are not passed along :-(
>
> Is your app sandboxed? Arguments are ignored in sandboxed applications.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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