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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to