• 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
Re: 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]

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


  • Subject: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 24 Jul 2013 06:42:58 -0700

On 2013 Jul 23, at 10:04, Public <email@hidden> wrote:

> I've googled and searched StackOverflow and they suggest I read Authorization Services Programming Guide.

Ignore that.  This is more likely an NSTask issue, not an authorization issue.

> 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?

NSTask is OK for quick, one-off operations but using it for serious database operations will be painful.  If you need sqlite, your time would be better spent learning to link the sqlite library directly and use sqlite's C interface.


_______________________________________________

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: Robert Martin <email@hidden>
References: 
 >Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode. (From: Public <email@hidden>)

  • Prev by Date: Re: view based NSTable View - button not firing
  • Next by Date: Re: NSTextView's MarkedText
  • Previous by thread: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Next by thread: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Index(es):
    • Date
    • Thread