Re: where to put persistent storage for command-line app
Re: where to put persistent storage for command-line app
- Subject: Re: where to put persistent storage for command-line app
- From: ChanMaxthon <email@hidden>
- Date: Fri, 16 May 2014 16:08:15 +0800
If you wish to follow UNIX standards, store generated files in a sub directory in /var/lib (global files) or dot-files in user home directory. NeXTSTEP use /Library/Application Support for globals and ~/Library/Application Support for user-specific.
Sent from my iPhone
> On May 16, 2014, at 2:21 PM, Roland King <email@hidden> wrote:
>
> ~/Library/Application Support
>
> is what I consider to be the standard place for persistent storage. I'd always start getting library from URLSForDirectory:inDomains: for the NSLibraryDirectory and go from there.
>
> Also, if you sandbox the tool at some point, you'll get a NSLibraryDirectory directory which has that structure (<sandbox>/Library/Application Support) which would make sandboxing a little more direct.
>
>> On 16 May, 2014, at 2:11 pm, Rui Pacheco <email@hidden> wrote:
>>
>> Isn't /Application Support/ the standard?
>>
>>
>>> On 16 May 2014 05:47, William Squires <email@hidden> wrote:
>>>
>>> Should I put it in /Library/Application\ Support/ or /Library/Preferences,
>>> or somewhere else?
>>>
>>>
>>> _______________________________________________
>>>
>>> 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
>>
>>
>>
>>
>> --
>>
>> Rui Pacheco
>> _______________________________________________
>>
>> 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
_______________________________________________
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