-[NSImage TIFFRepresentation] failing on the multiple files icon?

  • When I call -[NSWorkspace iconForFiles:] with multiple files, it
    returns an NSImage for the "multiple files" icon. But when I call -
    TIFFRepresentation on the result, the following appears in the console
    log:

    ---
    PredictorSetup: Horizontal differencing "Predictor" not supported with
    4-bit samples.
    ---

    The result of calling -TIFFRepresentation is nil.

    What does the above error mean? How can I get a TIFF representation of
    the multiple files icon?

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On Dec 6, 2007, at 1:53 PM, Nick Zitzmann wrote:

    > When I call -[NSWorkspace iconForFiles:] with multiple files, it
    > returns an NSImage for the "multiple files" icon. But when I call -
    > TIFFRepresentation on the result, the following appears in the
    > console log:
    >
    > ---
    > PredictorSetup: Horizontal differencing "Predictor" not supported
    > with 4-bit samples.
    > ---
    >
    > The result of calling -TIFFRepresentation is nil.
    >
    > What does the above error mean? How can I get a TIFF representation
    > of the multiple files icon?
    >
    > Nick Zitzmann
    > <http://www.chronosnet.com/>

    This looks like a bug.  Thanks for bringing this to our attention.

    That said, the image for iconForFiles: is rather archaic.  Look for
    the NSMultipleFiles.tiff image in the resources directory in
    AppKit.framework.

    -Peter
  • On Dec 6, 2007, at 5:14 PM, Peter Ammon wrote:

    > This looks like a bug.  Thanks for bringing this to our attention.
    >
    > That said, the image for iconForFiles: is rather archaic.  Look for
    > the NSMultipleFiles.tiff image in the resources directory in
    > AppKit.framework.

    Yeah, that's how I worked around the problem. And I filed bug #5634325.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On 12/6/07 4:14 PM, Peter Ammon said:

    > That said, the image for iconForFiles: is rather archaic.  Look for
    > the NSMultipleFiles.tiff image in the resources directory in
    > AppKit.framework.

    Wow, I don't think I've ever seen that image used anywhere!  It doesn't
    look very OS X-like.

    Nick, if you can use 10.5, maybe NSImage's new
    NSImageNameMultipleDocuments would be useful?

    --
    ____________________________________________________________
    Sean McBride, B. Eng                <sean...>
    Rogue Research                        www.rogue-research.com
    Mac Software Developer              Montréal, Québec, Canada
  • I don't think Peter was suggesting you hardcode its existence in the
    AppKit bundle, I think he just meant you should go look at it.  It's
    not a useful image.

    -Ken

    On Dec 6, 2007 4:24 PM, Nick Zitzmann <nick...> wrote:
    >
    > On Dec 6, 2007, at 5:14 PM, Peter Ammon wrote:
    >
    >> This looks like a bug.  Thanks for bringing this to our attention.
    >>
    >> That said, the image for iconForFiles: is rather archaic.  Look for
    >> the NSMultipleFiles.tiff image in the resources directory in
    >> AppKit.framework.
    >
    >
    > Yeah, that's how I worked around the problem. And I filed bug #5634325.
    >
    > Nick Zitzmann
    > <http://www.chronosnet.com/
    >
  • On Dec 7, 2007, at 7:38 AM, Sean McBride wrote:

    > Wow, I don't think I've ever seen that image used anywhere!  It
    > doesn't
    > look very OS X-like.
    >
    > Nick, if you can use 10.5, maybe NSImage's new
    > NSImageNameMultipleDocuments would be useful?

    Yeah, it does. Thanks for pointing that out.

    Nick Zitzmann
    <http://www.chronosnet.com/>
previous month december 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
31            
Go to today