• 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: Roland King <email@hidden>
  • Date: Tue, 22 Dec 2015 20:21:18 +0800

> 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? Are you trying to hand-write a preferences file instead of setting the user defaults and synchronize them? 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.


_______________________________________________

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: applicationSupportDirectory access for admin and standard users
      • From: Jonathan Mitchell <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>)

  • Prev by Date: Re: applicationSupportDirectory access for admin and standard users
  • Next by Date: Re: applicationSupportDirectory access for admin and standard users
  • 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