Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System icons



On 2006-09-15, at 03:19:17, Michel Lemieux wrote:

I am currently building an application that includes a rudimentary FTP server. I was able to display the directory contents inside a scroll view while assigning a Folder Icon fro each folder entry and a generic File Icon for each file element.

I would however prefer to tap into the finder database and poll the actual icon associated with the files (based on the extension).

Is there a way to do do this?

Practically, no. The icons used by the system are kept in various places including the default application used to open the file, the System resource file, kexts, and (seems to change every major release) some bundle in CoreServices. The best way to do this is use GetIconRefFromFileInfo() or one of the companion calls in Icons.h.



Philip Aker email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >System icons (From: Michel Lemieux <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.