• 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: About Document Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About Document Packages


  • Subject: Re: About Document Packages
  • From: Ricky Sharp <email@hidden>
  • Date: Fri, 11 Feb 2005 15:31:26 -0600


On Feb 11, 2005, at 3:38 PM, Seth Willits wrote:

One of the document types in my application, I want to be stored as a package. If I'm using files that can be written in Cocoa like from NSData and all that it seems that it'll be fine using the NSFileWrapper methods (even if they do confuse me), but I also need to store an SQLite database in this package. It seems that I could overwrite writeToFile and readFromFile and write all the files myself, but if I do, I'm not sure how to handle creating the package itself. Other than creating a folder with an extension, I don't know how to say "this is a XXXXX document" since it seems like that doesn't happen automatically. Anyway, does anyone have any suggestions?

On Feb 11, 2005, at 3:11 PM, Kevin Ballard wrote:

Isn't there a special key you add to the document type declaration in Info.plist?

LSTypeIsPackage

For an example, check out TextEdit's Info.plist at the 'rtfd' document type entry.


There's also a bit info on document packages at:

<http://developer.apple.com/releasenotes/Cocoa/NSDocumentFAQ.html>

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >About Document Packages (From: Seth Willits <email@hidden>)
 >Re: About Document Packages (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: About Document Packages
  • Next by Date: NSMatrix and NSImageCell and Bindings
  • Previous by thread: Re: About Document Packages
  • Next by thread: MVC problem
  • Index(es):
    • Date
    • Thread