Re: Best Place To Save States
Re: Best Place To Save States
- Subject: Re: Best Place To Save States
- From: "I. Savant" <email@hidden>
- Date: Fri, 28 Apr 2006 11:52:47 -0400
First, always assume your user cannot modify the contents of your
app bundle. Consider that the user may not be an administrator ...
Second, you haven't said whether your app is document-based or
just a plain app. If it's document-based and you only want the global
information to be global for that particular document, store it as
you would any other document -specific data.
You could use the preferences (NSUserDefaults), or the /Library/
Application Support/Your App Name/ or ~/Library/Application Support/
Your App Name/ folders ... it depends on what you want to do.
It sounds like the app support folder is your best bet in this
situation.
--
I.S.
On Apr 28, 2006, at 11:42 AM, Jerrod Fowkes wrote:
Hello, I need the ability to save off a state for my application.
By that I mean I need to remember some data that was filled in on
my form. Currently I am using the main bundle to load Images at
runtime. With that, I need the ability to write to a file somewhere
on the system if it existed, and if not then I would have to create
it.
My question is, where is the best place to create this file? is
just tilde slash a good place?
Is it the standard to throw in a blank file in the resources and
then I can write and read to that?
-Jerrod Fowkes
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone
call rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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