"Badging" Quick Look thumbnails

  • Finder is superimposing "RTF", "SHELL", "TXT" on icon previews of
    various text files (presumably thumbnails, as a Quick Look shows the
    document as text), and "DOC" on Word documents.

    I'm thinking of doing the same, as the text is so small it's hard to
    make out. Are there any guidelines as to the font size and color? Even
    better, sample code?

    David Dunham    A Sharp, LLC
    Voice/Fax: 206 783 7404    http://a-sharp.com
    Efficiency is intelligent laziness.
  • On Nov 11, 2007, at 6:18 PM, David Dunham wrote:

    > Finder is superimposing "RTF", "SHELL", "TXT" on icon previews of
    > various text files (presumably thumbnails, as a Quick Look shows the
    > document as text), and "DOC" on Word documents.
    >
    > I'm thinking of doing the same, as the text is so small it's hard to
    > make out. Are there any guidelines as to the font size and color?
    > Even better, sample code?

    You might get it for free if your UTI conforms to public.text.  Our
    file type gets that badge by conforming to public.plain-text as far as
    I can see; it draws on top of the QL thumbnail.

    --
    adam
  • On 11 Nov 2007, at 20:49, Adam R. Maxwell wrote:

    >> Finder is superimposing "RTF", "SHELL", "TXT" on icon previews of
    >> various text files (presumably thumbnails, as a Quick Look shows
    >> the document as text), and "DOC" on Word documents.
    >>
    > You might get it for free if your UTI conforms to public.text.  Our
    > file type gets that badge by conforming to public.plain-text as far
    > as I can see; it draws on top of the QL thumbnail.

    Which badge do you get?

    (I don't think I can be plain-text.)

    David Dunham    A Sharp, LLC
    Voice/Fax: 206 783 7404    http://a-sharp.com
    "People seem to misinterpret complexity as sophistication" -- Niklaus
    Wirth
  • The icon decoration (form, badging, etc.) is determined by your UTI and its
    conformance to functional UTIs
    (see:<http://developer.apple.com/documentation/Carbon/Conceptual/understanding_ut
    is/understand_utis_conc/chapter_2_section_2.html
    >).

    There are no official rules for now but what is important:
    1) focus your thumbnail only on your document's content, not on decoration.
    2) chose your UTI's conformance on what your file type actually is, not on
    what you expect Quick Look to produce. If you feel that you lack some
    decoration, please file a bug describing your file type (and its full
    declaration in your Info.plist) and what you are trying to achieve.

    --
    Julien

    On Nov 12, 2007 3:18 AM, David Dunham <dunham...> wrote:

    > Finder is superimposing "RTF", "SHELL", "TXT" on icon previews of
    > various text files (presumably thumbnails, as a Quick Look shows the
    > document as text), and "DOC" on Word documents.
    >
    > I'm thinking of doing the same, as the text is so small it's hard to
    > make out. Are there any guidelines as to the font size and color? Even
    > better, sample code?
    >
    > David Dunham    A Sharp, LLC
    > Voice/Fax: 206 783 7404    http://a-sharp.com
    > Efficiency is intelligent laziness.
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
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