Re: How to set color file labels?
Re: How to set color file labels?
- Subject: Re: How to set color file labels?
- From: "Adam R. Maxwell" <email@hidden>
- Date: Sun, 30 Mar 2008 08:57:25 -0700
On Mar 30, 2008, at 8:45 AM, Piotr Adamski wrote:
Hi All.
Is there any way to change Finder color file label with use of
Cocoa? I've managed to retrive it (with use of MDItemCopyAttribute)
but have no idea how to change it. I've been googling around with no
success, so I've decided to ask you.
You'll need to use File Manager functions for this. See
https://tcobrowser.svn.sourceforge.net/svnroot/tcobrowser/trunk/bibdesk/vendorsrc/amaxwell/FileView/FVFinderLabel.m
for a Cocoa wrapper (near the bottom of the file). Since Finder
labels aren't indexed, using the File Manager directly is likely as
fast as MDItem. There's also a class there for a Finder label view
that looks very similar to Finder's (10.5 only).
--
adam
On Mar 30, 2008, at 8:45 AM, Piotr Adamski wrote:
Hi All.
Is there any way to change Finder color file label with use of
Cocoa? I've managed to retrive it (with use of MDItemCopyAttribute)
but have no idea how to change it. I've been googling around with no
success, so I've decided to ask you.
You'll need to use File Manager functions for this. See
https://tcobrowser.svn.sourceforge.net/svnroot/tcobrowser/trunk/bibdesk/vendorsrc/amaxwell/FileView/FVFinderLabel.m
for a Cocoa wrapper (near the bottom of the file). Since Finder
labels aren't indexed, using the File Manager directly is likely as
fast as MDItem. There's also a class there for a Finder label view
that looks very similar to Finder's (10.5 only).
--
adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden