• 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: applicationSupportDirectory access for admin and standard users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applicationSupportDirectory access for admin and standard users


  • Subject: Re: applicationSupportDirectory access for admin and standard users
  • From: Jonathan Mitchell <email@hidden>
  • Date: Tue, 22 Dec 2015 13:36:52 +0000


> On 22 Dec 2015, at 12:21, Roland King <email@hidden> wrote:
>
>
>> On 22 Dec 2015, at 20:11, Jonathan Mitchell <email@hidden> wrote:
>>
>>
>>> On 21 Dec 2015, at 22:24, Sean McBride <email@hidden> wrote:
>>>
>>> On Mon, 21 Dec 2015 22:16:39 +0000, Jonathan Mitchell said:
>>>
>>>> My app seems to be having trouble reading and writing to the
>>>> applicationSupportDirectory.
>>
>>
>> 1. My preferences file does not get updated on first launch. This causes trouble further on.
>> I can probably insert a try/catch block in  -applicationDidFinishLaunching: but the main issue is the write failure of the preferences file.
>>
>
> What’s trying to write the preferences file and how is that related to the applicationSupportDirectory?
Likely none. I probably misdiagnosed the issue initially.
When I say write the user preferences what I mean is that the preferences I initially establish for my app do not get ultimately persisted by the defaults system.

> Are you trying to hand-write a preferences file instead of setting the user defaults and synchronize them?
No. I use the standard approach.

> The connection between the preferences files in the ~/Library/Preferences directory and the things loaded by NSUserDefaults has been tenuous for a few releases of the OS, the plist files get written, and read, only when the OS jolly well feels like it, the rest of the time they’re cached probably in a daemon.
Yes. I am aware of all that.
Regardless of when the prefs get persisted the user defaults available to the app are not what I anticipate.

As I said the issue only appears for a signed archive build for non admin users.
For admin users and debug builds for non admin users everything is fine.

J


_______________________________________________

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


References: 
 >applicationSupportDirectory access for admin and standard users (From: Jonathan Mitchell <email@hidden>)
 >Re: applicationSupportDirectory access for admin and standard users (From: Sean McBride <email@hidden>)
 >Re: applicationSupportDirectory access for admin and standard users (From: Jonathan Mitchell <email@hidden>)
 >Re: applicationSupportDirectory access for admin and standard users (From: Roland King <email@hidden>)

  • Prev by Date: Re: applicationSupportDirectory access for admin and standard users
  • Next by Date: Return from a background queue
  • Previous by thread: Re: applicationSupportDirectory access for admin and standard users
  • Next by thread: Re: applicationSupportDirectory access for admin and standard users
  • Index(es):
    • Date
    • Thread