• 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: Saving data to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving data to a file


  • Subject: Re: Saving data to a file
  • From: sinclair44 <email@hidden>
  • Date: Sat, 15 Mar 2003 06:30:33 -0500

On 3/14/03 4:48 PM, "Ron Phillips" <email@hidden> wrote:

> I have scoured the cocoa-dev archives, web sites and books and still am
> confused on how best to write data to a file from a non-document-based
> application. An XML format is fine, human-readable is not required. I
> have a collection of arrays, ints, strings, and BOOLs. What
> preparation is needed for a property list? Chris Kane indicated that
> archiving is not compatible with plists and writeToFile:atomically:.
> That's cool, so do I just *somehow* wrap up my high-level object into
> an NSData object and do the write? If so, what's the best approach to
> do that? Is encoding still needed?

[plug]
If you need an example or more 'document-based' file opening/closing, you
can look at the MiscellanyToolkit framework (written by me) and its class
"MTFileIO". It's open-source (GPL). It basically does what the other
responses have said.

http://www.versiontracker.com/moreinfo.fcgi?id=18501&db=mac
[/plug]
--

-- sinclair44

[self becomeWorldDictator];

- (void)becomeWorldDictator
{
[self coverLegalButt];

[[GeorgeBush principalClass] assassinate:[world currentLeaders]];
[[BinLaden principalClass] terrorize:[world citizens]];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}

- (void)coverLegalButt
{
/* The above does not reflect any plans, expressed or implied, real or
imaginative, to kill or assassinate anyone, or to harm anyone in any shape,
way or form. Any relation to actual events is purely coincidental. */
}
_______________________________________________
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: Saving data to a file
      • From: petite_abeille <email@hidden>
References: 
 >Saving data to a file (From: Ron Phillips <email@hidden>)

  • Prev by Date: Re: Programmatic equivalent to @protocol() macro?
  • Next by Date: Re: State of Cocoa adoption
  • Previous by thread: Re: Saving data to a file
  • Next by thread: Re: Saving data to a file
  • Index(es):
    • Date
    • Thread