Re: NSUserDefaults and home folder on different drive
Re: NSUserDefaults and home folder on different drive
- Subject: Re: NSUserDefaults and home folder on different drive
- From: "Rick C." <email@hidden>
- Date: Fri, 12 Dec 2014 07:10:49 +0800
So I found some old code where I was using NSAppleScript with "defaults write" ouch! :-) Sorry about that but curious why would this fail at times? Pretty sure that switching it to the proper NSUserDefaults will work fine…
> On Dec 11, 2014, at 10:24 PM, gweston <email@hidden> wrote:
>
> Rick C. <email@hidden> wrote:
>
> I write an NSString and NSData object to my app’s .plist and of course read it back when needed and this works fine 99% of the time. On occasion a user reports some trouble to me and I ask for the .plist and find out that this NSString/NSData object is missing. Digging deeper I find that most often the user has their home folder on a different drive (external?) than the actual app. What would be the solution to make sure these objects are written properly in this case? Thanks for the help,
>
> This is one of those things that should "just work" and has, in fact, been working for a very long time. So I think the initial response has to be to ask how you're writing those objects to the plist.
> _______________________________________________
>
> 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
_______________________________________________
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