Re: Finder file label from cocoa?
Re: Finder file label from cocoa?
- Subject: Re: Finder file label from cocoa?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 27 Apr 2010 21:38:54 -0400
Rainer Standke (email@hidden) 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 use the Core Services (aka Carbon) File
Manager. Check Files.h.
Sean
_______________________________________________
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