• 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: Loading array from file [easy?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading array from file [easy?]


  • Subject: Re: Loading array from file [easy?]
  • From: Larry Fransson <email@hidden>
  • Date: Fri, 23 Jul 2004 00:44:25 -0700

On Jul 22, 2004, at 23:27, Kodex wrote:

I have an array that i write to a file. I want to load
that array back into my program at awakefromnib.

[snip code]

Whoa. You don't mention how you wrote the array to the file, but generally, if all you want to do is write an array to a file and load it from the file later, -writeToFile:atomically: should do the writing just fine, and initWithContentsOfFile: should read it back in. You don't have to convert to & from a property list. That is done for you.

Larry Fransson
Seattle, WA
_______________________________________________
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.


References: 
 >Loading array from file [easy?] (From: Kodex <email@hidden>)

  • Prev by Date: Re: NSTimer firing issue
  • Next by Date: Re: 0 < -1 !!
  • Previous by thread: Loading array from file [easy?]
  • Next by thread: NS*View and Scrolling
  • Index(es):
    • Date
    • Thread