• 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
writeToFile:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

writeToFile:


  • Subject: writeToFile:
  • From: Andrew Merenbach <email@hidden>
  • Date: Thu, 21 Nov 2002 23:17:03 -0800

I'm making a small address-book-like application to keep track of the members of a few clubs. The data is in the form of an array filled with NSDictionary objects, and I would like to actually write my documents from, and read them into, a plaintext NSArray file (such that I could actually edit it by hand in a text editor). I've tried overriding writeToFile:ofType: and readFromFile:ofType:, but when I remove dataRepresentationOfType:, I get an exception (and no document file), and when I leave it in, but return nil, the document never gets written, either.

What do I need to do to create a document-based app that reads to, and writes from, a plaintext NSArray?

Take care,
Andrew Merenbach
_______________________________________________
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.

  • Prev by Date: Re: Table View Blues (summary)
  • Next by Date: Re: NSPropertyListSerialization compile error
  • Previous by thread: Re: Scroll a scrollView to the top
  • Next by thread: An interesting localisation issue
  • Index(es):
    • Date
    • Thread