Re: ~/library/application support/myapp directory creation
Re: ~/library/application support/myapp directory creation
- Subject: Re: ~/library/application support/myapp directory creation
- From: Ondra Cada <email@hidden>
- Date: Mon, 23 May 2005 22:07:28 +0200
Wil,
On 23.5.2005, at 21:55, Wil Turner wrote:
I need to store a file that will get read on a per-user basis when
the application starts and written to on the same basis when the
application shuts down. The file will contain a couple of archived
arrays. It seems like the appropriate location for this file is ~/
Library/Application Support/MyApplication/.
Use the app signature instead of its plain name, like .../
com.yourdomain.YourApplication.
1) If there's a better place, tell me :)
If the amount of information is small, the defaults database (see
NSUSerDefaults). If it is not small, there's no better place :)
2) Aside from creating the directory via an installer, how can this
directory best be created?
On demand, whenever the application needs to write to it the first
time. If there's no folder of the appropriate name, create it, and
then write into it.
3) How can I work with this directory while I'm still developing
with Xcode?
The very same way as when deployed. The folder and file(s) will be
created in the developer's Library, which is all right, is it not?
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden