views:

44

answers:

1

If a user has 2 or more quicklook plugins that handle the same kMDItemContentType what happens? Which plugin gets priority to do that actual work? Can that be set programmatically?

+1  A: 

From a quick reading of the docs (Installing Quick Look Generators), the Quick Look daemon chooses a generator based on the following search order:

  1. Inside the app bundle: MyApp.app/Content/Library/QuickLook
  2. In ~/Library/QuickLook
  3. In /Library/QuickLook
  4. In /System/Library/QuickLook

They finish by saying that if there is more than one generator for a UTI, the one that ranks highest on that list is chosen. If there are two or more for the same UTI at the same level, Apple says there is no way to know which will be chosen; the generator that is found first in their search is used.

Ryan Q
Thanks Ryan. I couldn't find that. I did look but must have missed that bit. That actually works just how I would want it.
regulus6633
Glad I could help! They buried that section at the end of the section. It probably would have gone better in the 'Overview of Generator Implementation' section.
Ryan Q