ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tdk-beta
tdk-beta
Re: [TDK-BETA] Questions about beta/OS X
by Jeff Hobbs other posts by this author
Feb 15 2007 4:36PM messages near this date
view in the new Beta List Site
Re: [TDK-BETA] Questions about beta/OS X | [TDK-BETA] Linux tclapp undesired output file
Kevin Walzer wrote:
>  >Regarding Icons, do you know if there is Tcl code, or other extension
>  >around for handling .icns files ?
>  >Display, file type detection, maybe decoding (list of icons 
>  >inside, sizes, etc.) ?
>  
>  There are none that I am aware of. I have looked at this myself, but it is 
>  beyond my skill to code in C. The Carbon API for accessing icons is found in

>  IconServices, with calls such as GetIconRef(); this will fetch and display 
>  and image, but it's nothing that Tk can use without some bridging. There is 
>  also an open-source (BSD-license) Cocoa library called IconFamily, but I 
>  don't know how easily Tcl can be bridged to Objective C. I've looked at the 
>  CoreGraphics API's to see if there is any way to convert an icns file to a 
>  GIF or PNG in memory so it could be displayed in Tk, but it's over my head.

OS X .icns files are an unfortunate black art that hasn't been cracked, as far
as I can tell.  There are some viewing tools and such, but no API spec or
anything that would work in a x-platform manner.

Jeff

_______________________________________________
Tdk-beta mailing list
Tdk-beta@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk-beta
Thread:
Kevin Walzer
Andreas Kupries
Kevin Walzer
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved