Re: Finder Labels/Colors of File
Re: Finder Labels/Colors of File
- Subject: Re: Finder Labels/Colors of File
- From: "Sean McBride" <email@hidden>
- Date: Thu, 11 Nov 2004 01:06:16 -0500
Steve Sheets (email@hidden) on Tue, Nov 9, 2004 14:02 said:
>How does one find the color/label of a file/folder in the Finder using
>Cocoa? I know there were similar calls for this using old HFS, but the
>calls I am reading about for Cocoa File Manager returns lots of
>information about path to file/folder, but not the Color/Label setting.
>There is still old call to find out what actual color & name each
>integer setting represents, but I can not find how to find/set this
>information for a file.
I don't think there is any Cocoa API. From a post on the Carbon list:
Labels are numbered 0-7 and are represented by three bits of the finderFlags
field of a FileInfo.
( (FileInfo*)inCatInfo.finderInfo )->finderFlags & kColor
--
"I object to violence because when it appears to do good, the good is
only temporary; the evil it does is permanent." - Gandhi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden