iconFamilyWithThumbnailsOfImage

Developers
2009-02-14
2013-04-26
  • Piotr Isajew

    Piotr Isajew - 2009-02-14

    Hi,

    The last line of the following code:

    NSImage *img;
    /*
    .... creating a nice image
    */
    IconFamily *ifm = [IconFamily iconFamilyWithThumbnailsOfImage: img];

    gives the following error on the console:

    2009-02-14 08:58:23.693 IconTest[1132:813] *** -[_NSImageAuxiliary drawInRect:]: unrecognized selector sent to instance 0x1559b0

    I'll appreciate any ideas how to fix this.

     
    • Piotr Isajew

      Piotr Isajew - 2009-02-22

      Found it!

      changing line 1069 from:
      workingImageRep = [workingImage bestRepresentationForDevice:nil];

      to:
      workingImageRep = [NSBitmapImageRep imageRepWithData:                                                                 [workingImage TIFFRepresentation]];

      solved my problem.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks