• 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
Info.plist settings for Quick Look?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Info.plist settings for Quick Look?


  • Subject: Info.plist settings for Quick Look?
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 2 Jul 2010 10:49:28 -0400

My Mac OS X application for Leopard and Snow Leopard saves documents with a custom file extension, but the documents' content format is XML. I want my users to see a Quick Look preview of the documents' contents when they select one in the Finder and hit the spacebar. Since Apple's built-in Text.qlgenerator plug-in recognizes XML files, I should be able to get this to work with appropriate settings in my application's Info.plist file without writing my own Quick Look generator. I've got this working if I use the Finder to change the file extension on one of the documents to .xml -- hitting the spacebar shows me the document's XML contents. But when the document has my custom file extension, Quick Look only shows me the document's icon.

My Google search turned up many tips about how to set up my Info.plist file so that Quick Look will work with my custom file extension, but I can't get it to work. Can anybody supply step-by-step instructions?

The tips say to add "public.xml" to the UTTypeConformsTo entry in the UTExportedTypeDeclarations entry in Info.plist, then run 'sudo qlmanage -r' in Terminal. But my Info.plist file has always used "public.xml," and that doesn't seem to be enough. My Info.plist file has also always had a UTTypeTagSpecification entry with the value set to my custom file extension.

--

Bill Cheeseman - email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Prev by Date: Re: Custom bundle icon
  • Next by Date: Re: iOS4: VOIP App
  • Previous by thread: Re: Custom bundle icon
  • Next by thread: Bypass Network System Preferences for DNS lookup
  • Index(es):
    • Date
    • Thread