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

using NSFileWrapper


  • Subject: using NSFileWrapper
  • From: Chris Meyer <email@hidden>
  • Date: Wed, 20 Nov 2002 17:47:15 -0800

I have an application where I'm going to store my document as a bundle; inside the bundle will be many potentially large files (movies and images).

I'm considering using an NSFileWrapper to manage the files in the bundle. Has anyone had any experience using NSFileWrappers for document bundles? Are NSFileWrappers intended to be used for that purpose (it would seem so, since NSDocument has methods to save the document using NSFileWrappers -- but actually trying to use them leads me to some difficulties).

One specific problem I'm having is that the document provides an NSFileWrapper when the document is loaded via loadFileWrapperRepresentation:ofType:; but am I supposed to retain that wrapper so that I can retrieve the files in the wrapper? And if I do retain it, should I supply the same wrapper back through the NSDocument in fileWrapperRepresentationOfType:? And if I don't retain it, how do I get access to my files after the document has been loaded (these are potentially large movies that I can't load into memory)? Again, is NSFileWrapper the right tool for this job?

Any comments, experience, or answers would be helpful. Thanks.
_______________________________________________
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: how to crash on normally ignored exceptions
  • Next by Date: Re: Giving the CPU a break...
  • Previous by thread: Re: how to crash on normally ignored exceptions
  • Next by thread: Address Book API - Person vs Company
  • Index(es):
    • Date
    • Thread