That's exactly what I was looking for - thank you very much!
Rainer
On Apr 28, 2010, at 0:08 , Jean-Daniel Dupas wrote:
>
> Le 28 avr. 2010 à 02:14, Rainer Standke a écrit :
>
>> Hello,
>>
>> is there a way to get to the finder label of a file from Cocoa? I'd like to
>> be able to get & set
On Apr 27, 2010, at 5:14 PM, Rainer Standke wrote:
> Hello,
>
> is there a way to get to the finder label of a file from Cocoa? I'd like to
> be able to get & set them.
In addition to Uli's solution, I have a class that specifically deals
with Finder labels, and works at least back to 10.4:
On 28.04.2010, at 02:14, Rainer Standke wrote:
> is there a way to get to the finder label of a file from Cocoa? I'd like to
> be able to get & set them.
If you need to support older MacOS versions, my UKDirectoryEnumerator class
also includes a category to get/set Carbon-specific file attribute
Le 28 avr. 2010 à 02:14, Rainer Standke a écrit :
> Hello,
>
> is there a way to get to the finder label of a file from Cocoa? I'd like to
> be able to get & set them.
To get and set it, you can probably use the NSURLLabelNumberKey property
(introduced in 10.6) and the URL Resource API:
- (B
Rainer Standke (li...@standke.com) on 2010-04-27 20:14 said:
>Hello,
>
>is there a way to get to the finder label of a file from Cocoa? I'd like
>to be able to get & set them.
In 10.6 you can use NSWorkspace's:
- (NSArray *)fileLabels
- (NSArray *)fileLabelColors
On older OSes, you'll need to u
Hello,
is there a way to get to the finder label of a file from Cocoa? I'd like to be
able to get & set them.
Thanks,
Rainer___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C