FROM : Adam R. Maxwell
DATE : Sun Mar 30 17:57:25 2008
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
DATE : Sun Mar 30 17:57:25 2008
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
| Related mails | Author | Date |
|---|---|---|
| Piotr Adamski | Mar 30, 17:45 | |
| Adam R. Maxwell | Mar 30, 17:57 | |
| Gerriet M. Denkman… | Mar 30, 22:26 |






Cocoa mail archive

