• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to set color file labels?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to set color file labels? (From: Piotr Adamski <email@hidden>)

  • Prev by Date: Re: NSPredicate and Regexes
  • Next by Date: Re: weak linking
  • Previous by thread: How to set color file labels?
  • Next by thread: Re: How to set color file labels?
  • Index(es):
    • Date
    • Thread