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

Re: NSFileWrapper Directories


  • Subject: Re: NSFileWrapper Directories
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Sun, 12 Dec 2004 02:04:50 -0800

Hello...

Have you added the LSTypeIsPackage flag to the CFBundleDocumentTypes entry in your application's Info.plist file?

	<key>LSTypeIsPackage</key> <true/>

<http://developer.apple.com/Documentation/Cocoa/Conceptual/Documents/Concepts/DocTypePList.html>

and the canonical list of Info.plist keys:
<http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Concepts/PListKeys.html>

Hope that helps,

	Louis



I'm using the fileWrapperRepresentationOfType message from NSDocument to save an NSFileWrapper as a directory that contains several files. In the same way the Finder treats an App file, I'd like my file to be treated as a single file, rather than a folder. However, everything I've tried has resulted in just creating a folder, and not a "package". I don't see anything suspicious in my code, but I've pasted it below if anyone wants to take a look.
...
Thanks in advance!

- Todd


_______________________________________________ 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: 
 >NSFileWrapper Directories (From: Todd Yandell <email@hidden>)

  • Prev by Date: Re: "final" string validation in custom NSFormatter
  • Next by Date: separate undo manager for textview in document app
  • Previous by thread: NSFileWrapper Directories
  • Next by thread: Allocate memory for object
  • Index(es):
    • Date
    • Thread