• 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 a file type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a file type


  • Subject: Re: Writing a file type
  • From: John Hörnkvist <email@hidden>
  • Date: Mon, 3 Sep 2001 01:25:07 +0200

On Sunday, September 2, 2001, at 10:24 AM, Rob Rix wrote:

Greetings, all.

In a project that I'm working on, I'm going to want to archive data to a file. So, I've read up on NSArchiver and NSUnarchiver and NSSerializer, et cetera, and the NSCoding protocol.

Problem is, I want to write to a bundle, not a flat file. The bundle would contain files for various objects and also resources that they share. So, it would be analogous to the .rtfd file format that TextEdit handles.

Look at NSFileWrapper. (It's in the AppKit.) NSDocument supports file wrappers, with slightly more work than "flat" coders.

Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com


References: 
 >Writing a file type (From: Rob Rix <email@hidden>)

  • Prev by Date: NSTabItems dynamically loaded?? and other IB weaknesses...
  • Next by Date: Quitting the dock
  • Previous by thread: Re: Writing a file type
  • Next by thread: Implementing behavior for "make" appleevent in Cocoa App.
  • Index(es):
    • Date
    • Thread