• 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: Finder file label from cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder file label from cocoa?


  • Subject: Re: Finder file label from cocoa?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 28 Apr 2010 09:08:22 +0200

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:

- (BOOL)getResourceValue:(id *)valueforKey:(NSString *)keyerror:(NSError **)error
- (BOOL)setResourceValue:(id)value forKey:(NSString *)key error:(NSError **)error


-- Jean-Daniel




_______________________________________________

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

  • Follow-Ups:
    • Re: Finder file label from cocoa?
      • From: Rainer Standke <email@hidden>
References: 
 >Finder file label from cocoa? (From: Rainer Standke <email@hidden>)

  • Prev by Date: Re: NSCalendar date calculation anomaly
  • Next by Date: Re: Make About window respond to ⌘W in UI-less application
  • Previous by thread: Re: Finder file label from cocoa?
  • Next by thread: Re: Finder file label from cocoa?
  • Index(es):
    • Date
    • Thread