cocoa - Modify defaults of sandboxed application from non-sandboxed app -
i have application i'm sandboxing. automated acceptance testing using accessibility api different process. before sandboxing, test suite used cfpreferencessetvalue , friends set default values application.
after sandboxing, defaults read ~/library/containers/bundleid/data/library/preferences cfpreferencessetvalue functions writes ~/library/preferences far understand.
is there way programmatically write preferences sandboxed preferences without e.g. hardcoding location , modifying plist directly, or using defaults command line utility.
one solution add together "application group" sandboxed app, thereby allowing other apps of grouping share preferences, see: reading nsuserdefaults helper app in sandbox
cocoa nsuserdefaults sandbox
No comments:
Post a Comment