Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-26 Thread Public
Thanks Scott and Jens for sharing your thoughts. I didn't set up entitlements (yet), but when launched from within Xcode, my (non-sandboxed Cocoa) app was able to read and clear ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 created by system. However, when launched from Fi

Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.

2013-07-23 Thread Public
I've a non-sandboxed Cocoa app that launches sqlite command using NSTask to read a preferences file in ~/Library/Preferences. The app works fine when launched using Xcode Build-and-Run, but when the app (after using Xcode Archive and Distribute) is launched independent of Xcode, the app launches

Is container migration manifest required to access 3rd party file in ~/Library/Preferences from sandboxed Cocoa app in OS X 10.8 SDK?

2013-06-06 Thread Public
I'm building a Cocoa app (using OS X 10.8 SDK) to access a file (that was not created or owned by my app) in ~/Library/Preferences/. I'm able to access the ~/Library/Preferences from a non-sandboxed app, however when I run my NSTask from my sandboxed app, the path returned is /Users/username/