Write stuff to location in file the other app knows about, then read it. Sent from my iPhone
> On Jun 20, 2020, at 16:17, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > 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. > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/lxr%40icloud.com > > This email sent to l...@icloud.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com