• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • From: Public <email@hidden>
  • Date: Wed, 24 Jul 2013 01:04:06 +0800

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.
_______________________________________________

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


  • Follow-Ups:
    • Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
      • From: Paul Scott <email@hidden>
    • Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
      • From: Jerry Krinock <email@hidden>
    • Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
      • From: Todd Heberlein <email@hidden>
  • Prev by Date: Re: custom fonts
  • Next by Date: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Previous by thread: Re: Constraining a mouse cursor to a rect / window
  • Next by thread: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Index(es):
    • Date
    • Thread