Re: Reading/Writing application dictionary files.
Re: Reading/Writing application dictionary files.
- Subject: Re: Reading/Writing application dictionary files.
- From: David Casseres <email@hidden>
- Date: Sun, 06 Jul 2008 20:06:21 -0700
Store your state information in an NSDictionary, and write it out
using the writeToFile:atomically: method. When you want to read it in,
use the NSDictionary class method +dictionaryWithContentsOfFile:.
Works great.
On Jul 6, 2008, at 7:51 PM, Lemon Obrien wrote:
I need to read and write a .dict file to keep state for my
application. i'm new to cocoa so i don't know how a cocoa app should
handle state files.
i do have .dict files as resources in xcode; i've heard, but don't
know how to, that you can save ".dict" file inbetween an
application; and that your application automatically does this for
certain standard features.
i need to do this with a file saving information for the application/
user in the right place.
this file can grow large.
thanks+
You don't get no juice unless you squeeze
Lemon Obrien, the Third.
http://www.tamago.us
_______________________________________________
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