• 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
Order of Finder labels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Order of Finder labels


  • Subject: Order of Finder labels
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 31 Mar 2012 19:29:32 -0500

Mac OS 10.7, Xcode 4.3.2

I have an application with which I would like to set Finder labels (colors) for directories. I use the URL resource API to read and write NSURLLabelNumberKey for the target directory. This works, up to a point.

If I set the label number to 0, it behaves as expected: Any label is removed.

If I set the label number to anything else (up to 7), the folder's label is set, but the label numbers don't seem to correspond to any order the Finder uses. Label 3 does not correspond to the third color in the Finder Preferences list, nor does it correspond (as one source suggests) to the third label in alphabetical order by name.

+[NSWorkspace fileLabelColors] returns the available label colors in the same order as the index.

What I'd really like is to use the same order as appears in the preferences, and in the File/contextual menu. That is, I'd like to conform to Apple's interface. Is this possible?

	— F


_______________________________________________

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: Order of Finder labels
      • From: Seth Willits <email@hidden>
  • Prev by Date: Convert to Objective-C ARC Syntax Error
  • Next by Date: Re: Order of Finder labels
  • Previous by thread: Convert to Objective-C ARC Syntax Error
  • Next by thread: Re: Order of Finder labels
  • Index(es):
    • Date
    • Thread