• 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: writing & reading a file in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing & reading a file in Cocoa


  • Subject: Re: writing & reading a file in Cocoa
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 25 Dec 2002 23:04:24 -0500

On Wednesday, December 25, 2002, at 09:58 PM, Manooch Khajeh wrote:

Happy holidays:

I am writing a preference pane. I want to read & write a C data
structure into a file. Is there an example of this anywhere?

I prefer not to use NSDictionary and instead read & write the whole C
structure as a block of data bytes.


Why not use the preferences database via userdefaults?

It'd be better to write these items out in a non-C-structure way, since this would give you better ability to change/add keys in the future.
_______________________________________________
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.
  • Follow-Ups:
    • Re: writing & reading a file in Cocoa
      • From: Mike Ferris <email@hidden>
References: 
 >writing & reading a file in Cocoa (From: Manooch Khajeh <email@hidden>)

  • Prev by Date: (Somewhat OT) What is Image Capture doing?
  • Next by Date: Working with a date and NSSteppers
  • Previous by thread: Re: writing & reading a file in Cocoa
  • Next by thread: Re: writing & reading a file in Cocoa
  • Index(es):
    • Date
    • Thread