• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading/Writing application dictionary files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Reading/Writing application dictionary files. (From: Lemon Obrien <email@hidden>)

  • Prev by Date: Re: Stopping actions mid stream
  • Next by Date: Re: plist parsing in c
  • Previous by thread: Reading/Writing application dictionary files.
  • Next by thread: Re: Reading/Writing application dictionary files.
  • Index(es):
    • Date
    • Thread