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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/casseres%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]