Menu

#192 Display Mac icons with Carbon IconServices API

closed-out-of-date
5
2011-01-04
2007-05-11
No

I would like to see Tk Aqua display Mac icons natively using the Carbon IconServices API (see http://developer.apple.com/documentation/Carbon/Reference/IconServices/index.html\). I envision this working in the following fashion: given a file path, Carbon would display the correct icon/image data in Tk.

There appear to be at least rudimentary hooks for doing this already in the Tk Aqua code base, specifically tkMacOSXBitmap.c. Currently the code is mostly broken, and does not display many of the icons that were previously supported under Mac OS Classic (i.e. the "folder" bitmap). This could be an opportunity to fix and modernize the code at the same time.

Discussion

  • Kevin Walzer

    Kevin Walzer - 2007-05-11
    • assigned_to: dkf --> das
     
  • Kevin Walzer

    Kevin Walzer - 2007-05-11

    Logged In: YES
    user_id=794827
    Originator: YES

    There is an extension for Windows Tk that wraps the Win32 API for getting icons: see http://wiki.tcl.tk/17859. Perhaps this might provide a model of how to proceed.

     
  • Kevin Walzer

    Kevin Walzer - 2011-01-04
    • status: open --> closed-out-of-date