• 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: Jens Alfke <email@hidden>
  • Date: Fri, 26 Jul 2013 12:36:08 -0700

On Jul 23, 2013, at 12:10 PM, Paul Scott <email@hidden> wrote:

> Why launch sqlite command? Why not link directly to the sqlite library and access the data base directly?

+1. You can also use the open-source FMDB library, a friendly Objective-C wrapper around SQLite.

I've never worked with sandboxing, but I would guess that a sandboxed app can't access arbitrary files in ~/Library/Preferences, but instead has to go through NSUserDefaults. (There could well be interesting private data in other app's preference files.) You may want to store your sqlite-based prefs in your app's Application Support directory instead.

—Jens
_______________________________________________

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 Vojta <email@hidden>
    • Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
      • From: Scott Ribe <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: Observing Time
  • Next by Date: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • 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