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

Creating file packages


  • Subject: Creating file packages
  • From: Mark Dawson <email@hidden>
  • Date: Wed, 26 Jan 2005 15:54:43 -0800

I want to save a document as a file package (bundled directory). I see references to NSFileWrapper, but wasn't sure if it did what I wanted.

What I want is for the user to be able to create a file, then save it. The act of saving it saves pieces of the document into different files (mainly separated into objects and plist XML files). Localizers can edit their appropriate /Resources/xxx.llproj/ files (either adding or editing existing).

I wasn't clear whether NSFileWrapper creates the bundled directory (/Conents/Resources etc) when adding files there. Do I create the directory structure, then have NSFileWrapper put the files there? I assume the NSFileWrapper is the "Cocoa" way to go for this? I'm not sure what advantage there is vs just a brute force of saving different files different places…

I see references to NSFileWrapper in the documentation, but I haven't run across any example code showing how to use it for building file packages.

Thanks for any enlightenment thrown my way!

mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Breakpoint on arbitrary selector
  • Next by Date: Re: Printing an NSTableView
  • Previous by thread: Re: Breakpoint on arbitrary selector
  • Next by thread: Observing change of selection
  • Index(es):
    • Date
    • Thread