Re: Where best to put "resources"?
Re: Where best to put "resources"?
- Subject: Re: Where best to put "resources"?
- From: Dan Wood <email@hidden>
- Date: Thu, 14 Mar 2002 22:36:48 -0800
You could store the template or default as a resource file, but
then save it, when it's modified, into a file in, say,
~/Library/Application Support/YourApplication/. When your app
goes to open it up, it could use
NSSearchPathForDirectoriesInDomains to look in the user domain
(or, perhaps, in the user and then local and then network
domains) and then finally fall back to looking in your app's
resources.
On Thursday, March 14, 2002, at 08:13 PM, 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?
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)?
_______________________________________________
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.
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
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.