Re: Finder file label from cocoa?

2010-04-28 Thread Rainer Standke
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

Re: Finder file label from cocoa?

2010-04-28 Thread Adam R. Maxwell
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:

Re: Finder file label from cocoa?

2010-04-28 Thread Uli Kusterer
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

Re: Finder file label from cocoa?

2010-04-28 Thread Jean-Daniel Dupas
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

Re: Finder file label from cocoa?

2010-04-27 Thread Sean McBride
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

Finder file label from cocoa?

2010-04-27 Thread Rainer Standke
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