• 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: Dynamically creating NSBundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically creating NSBundles


  • Subject: Re: Dynamically creating NSBundles
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 8 Jan 2007 22:57:55 +0100

Am 08.01.2007 um 22:15 schrieb d2kagw:
I was wondering if there's any way of making an application build and save NSBundles as a file type?
The application im working on needs to save several files per document and i'd love to be able to group them together into a bundle for the users sake, im pretty sure i've seen a tutorial on this ages ago but I haven't been able to find it :(

I don't think you want NSBundle here. NSBundle is for executable code in a file package. If you want a file package, you just create the folder hierarchy and the files in it manually, and mark your file type as a file package in your Info.plist (the containing folder needs to have a name extension for this to work).


NSFileWrapper makes this a little easier if your files don't get too big.

BTW -- there's two kinds of file packages, flat and deep. Deep is like an application, with a "Contents" folder containing further subdirectories, but you can also have just one folder directly containing your files.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Dynamically creating NSBundles (From: d2kagw <email@hidden>)

  • Prev by Date: Re: Dynamically creating NSBundles
  • Next by Date: Re: ESC to cancel editing in tableview
  • Previous by thread: Re: Dynamically creating NSBundles
  • Next by thread: Why would -[NSString dataUsingEncoding:allowLossyConversion:] throw exception?
  • Index(es):
    • Date
    • Thread