Why launch sqlite command? Why not link directly to the sqlite library and access the data base directly?
Further, preference files in ~/Library/Preferences are typically XML key-value plist files. Why not use [NSUserDefaults standardUserDefaults]? Paul On Jul 23, 2013, at 10:04 AM, Public <mailbox20040...@gmail.com> wrote: > 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 > but doesn't execute the sqlite command. > > I've googled and searched StackOverflow and they suggest I read Authorization > Services Programming Guide. > > My question is: if the sqlite command is to be executed using the current > user (not root) against the current user's ~/Library/Preferences, what do you > recommend as an approach besides using Authorization Services? > > Thanks.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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