QuickLook Plugins

  • Despite the great docs and template project, I can't get my quicklook
    plugin to be recognized.

    I have added the following to my app's info.plist:

    <key>UTExportedTypeDeclarations</key>
    <array>
      <dict>
      <key>UTTypeDescription</key>
      <string>Sophie Author Book (Bundle)</string>
      <key>UTTypeIdentifier</key>
      <string>org.sophieproject.sophie.book.author.bundle</string>
      <key>UTTypeTagSpecification</key>
      <dict>
        <key>com.apple.ostype</key>
        <string>Spbf</string>
        <key>public.filename-extension</key>
        <array>
        <string>spbf</string>
        </array>
      </dict>
      </dict>
    </array>

    I have the following in the plist for the qlgenerator:

    <key>CFBundleDocumentTypes</key>
    <array>
      <dict>
      <key>CFBundleTypeRole</key>
      <string>QLGenerator</string>
      <key>LSItemContentTypes</key>
      <array>
        <string>org.sophieproject.sophie.book.author.bundle</string>
      </array>
      </dict>
    </array>

    I have copied my app, I have run qlmanage -r, I have set up xcode to
    use qlmanage as the active executable, I have changed all of my
    filenames to .m to use Objective-C (maybe that is the issue?) but
    quicklook never reports my qlgenerator as a type, and nothing ever
    gets called.

    What voodoo am I missing?

    Thanks!
  • First, I would suggest taking this over to the Quicklook-dev mailing
    list.

    Have you tried taking a look at lsregister -dump to see what it can
    tell you about what the OS is finding and where?

    I might suggest cleaning up your launch services database first with:

      lsregister -kill -r -domain local -domain system -domain user

    and then launching your application once and then checking the output
    of lsregister -dump.

    Where is your QuickLook plugin located exactly within the Application
    bundle?

    p.s. I actually have two alias' setup in my .bashrc file to make enter
    those two lsregister command easier:

    alias lsdump='lsregister -dump'
    alias lsreset='lsregister -kill -r -domain local -domain system -
    domain user'

    On Nov 16, 2007, at 2:33 PM, Steven W Riggins wrote:

    > Despite the great docs and template project, I can't get my
    > quicklook plugin to be recognized.
    >
    > I have added the following to my app's info.plist:
    >
    > <key>UTExportedTypeDeclarations</key>
    > <array>
    > <dict>
    > <key>UTTypeDescription</key>
    > <string>Sophie Author Book (Bundle)</string>
    > <key>UTTypeIdentifier</key>
    > <string>org.sophieproject.sophie.book.author.bundle</string>
    > <key>UTTypeTagSpecification</key>
    > <dict>
    > <key>com.apple.ostype</key>
    > <string>Spbf</string>
    > <key>public.filename-extension</key>
    > <array>
    > <string>spbf</string>
    > </array>
    > </dict>
    > </dict>
    > </array>
    >
    > I have the following in the plist for the qlgenerator:
    >
    > <key>CFBundleDocumentTypes</key>
    > <array>
    > <dict>
    > <key>CFBundleTypeRole</key>
    > <string>QLGenerator</string>
    > <key>LSItemContentTypes</key>
    > <array>
    > <string>org.sophieproject.sophie.book.author.bundle</string>
    > </array>
    > </dict>
    > </array>
    >
    > I have copied my app, I have run qlmanage -r, I have set up xcode to
    > use qlmanage as the active executable, I have changed all of my
    > filenames to .m to use Objective-C (maybe that is the issue?) but
    > quicklook never reports my qlgenerator as a type, and nothing ever
    > gets called.
    >
    > What voodoo am I missing?
  • thanks,

    I still don't think we should need to muck with launch services to
    have this stuff work.  Shouldn't bumping the bundle version be enough
    to trigger the finder to update launch services?
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today