• 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: Scott Ribe <email@hidden>
  • Date: Fri, 26 Jul 2013 15:26:20 -0600

On Jul 26, 2013, at 1:36 PM, Jens Alfke <email@hidden> wrote:

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

Don't know about iOS, but at least on OS X you can do this, depending on the definition of arbitrary. In other words, you can set up entitlements to specific files in preferences that are not named by your bundle identifier, as would be necessary for shared preferences between a suite of apps. But of course you can't give yourself an entitlement to ~/Library/Preferences and then wander through the whole directory.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

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

  • Prev by Date: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Next by Date: NSUserDefaults deeply nested subtle mountain lion difference
  • 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