• 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: FileWrapper Icon for non-document based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileWrapper Icon for non-document based app


  • Subject: Re: FileWrapper Icon for non-document based app
  • From: Rainer Brockerhoff <email@hidden>
  • Date: Fri, 23 Jan 2004 11:08:34 -0200

At 03:33 -0800 23/01/2004, email@hidden wrote:
>From: Ron Medina Ballesteros <email@hidden>
>Date: Thu, 22 Jan 2004 22:35:36 -0800
>
>I have a non-document based app that creates a package file using
>NSFileWrapper and everything works on this part. The problem that I am
>having is that the file package is viewed by Finder as a folder as
>opposed to a packaged file.
>
>I searched the archives as how to fix this and the results that I found
>was to simply edit the plist file with an entry of
>CFBundleDocumentTypes. However most of them were geared towards
>document based apps.
>
>I'm just unsure as to how to have the file package created use the same
>icon that my app uses.

Here's an example for a non-document app, but leave the comments out ;-)
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>myext</string> // your extension
</array>
<key>CFBundleTypeIconFile</key>
<string>myIcon.icns</string> // your icon file inside the app's resources
<key>CFBundleTypeName</key>
<string>My Document</string> // the document name to appear in "Get Info"
<key>CFBundleTypeOSTypes</key>
<array>
<string>TyPe</string> // your file type (optional)
</array>
<key>CFBundleTypeRole</key>
<string>None</string> // or Editor, or whatever
<key>LSTypeIsPackage</key>
<true/>
</dict>
</array>

For document apps you would also need the NSDocumentClass key.
HTH,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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.

  • Follow-Ups:
    • Re: FileWrapper Icon for non-document based app
      • From: Eric Forget <email@hidden>
  • Prev by Date: Re: setUsesAlternatingRowBackgroundColors: broken?
  • Next by Date: Re: HEAD request using NSURLConnection
  • Previous by thread: FileWrapper Icon for non-document based app
  • Next by thread: Re: FileWrapper Icon for non-document based app
  • Index(es):
    • Date
    • Thread