Re: Where best to put "resources"?
Re: Where best to put "resources"?
- Subject: Re: Where best to put "resources"?
- From: Ondra Cada <email@hidden>
- Date: Fri, 15 Mar 2002 14:15:25 +0100
On Friday, March 15, 2002, at 05:13 , John McGruer wrote:
I wish to carry a "resource" file around with my main app. Trouble is, it
is
not really a resource - it is a file containing info that sometimes needs
to
be edited and saved. I tried putting in the Main Bundle Resources folder
and
that works fine for loading but my app quits unexpectedly when I try to
save
a modified version back to the bundle - I take it that resources can't be
saved to a "Bundle" pathname with normal NSArchiver methods?
Nothing can be saved there, for applications are (or at the very least
*SHOULD BE*) non-writeable.
If not, where best to put the file so that I can always find it (without
requiring the user to always install it in a specific folder)?
If the data are small, defaults are the best way. Otherwise, use ~/Library/
Application Support/<your app name>. Incidentally, although the "normal"
app name is common to be used, I would recommend for obvious reasons the
complete application identifier (like "cz.ocs.StupidTool" instead of just
"StupidTool").
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.