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: File/Folder icons - normal and custom




On Jun 10, 2007, at 8:42 AM, Yaron Tadmor wrote:

Thanx for the tip, but the guidelines have little to do with my question. I already know what I want the icon to look like, and I want a custom one per each and every document (since the icon is a preview). My question was mainly technical – how do I easily achieve setting a custom icon to a specific file/folder/package?

Take a look at this sample code: <http://developer.apple.com/samplecode/SetCustomIcon/index.html >


Quoting from the comments in main.c:

A file with a custom icon must contain a resource ( 'icns', -16455 ) and have its kHasCustomIcon bit set.
A folder with a custom icon must contain a file named "\pIcon\r" within it with a resource ( 'icns', -16455 ) and have the folders kHasCustomIcon bit set.


My x-plat question, was to see if there's a way to use some kind of x-plat format for the icon, such as tiff or jpg.

No, there is not.

-eric

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

This email sent to email@hidden
References: 
 >RE: File/Folder icons - normal and custom (From: "Yaron Tadmor" <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.