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

Re: Order of Finder labels


  • Subject: Re: Order of Finder labels
  • From: Seth Willits <email@hidden>
  • Date: Sun, 01 Apr 2012 17:25:31 -0700

On Apr 1, 2012, at 10:33 AM, Fritz Anderson wrote:

>> Why wouldn't it be? Just display them in the same order as Finder and don't rely on the display index being the same as the label index you use in the assignment. I don't really see the problem. (I've done this.)
>
> Hard-coding the order works in practice — most of the time. Unless I much mistake, it doesn't work in principle. Users can change colors and label names, and I know of no way to sort colors or names to match what's in the Finder preferences. Maybe the permutation of the indices is fixed, but I'd be more comfortable if the permutation were documented.

Users cannot change the Finder label colors, only the label names.

Though, I was wrong; My code actually is relying on pre-10.6 path FSSetCatalogInfo to set the file label. Oops. :)

But as you say, in practice it'll work. The order doesn't make any sense to me either, but the label names and colors don't change their index in 10.7 or 10.6 so you can rely on it. I doubt they've changed for 10.8 either.


--
Seth Willits


_______________________________________________

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


References: 
 >Re: Order of Finder labels (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Convert to Objective-C ARC Syntax Error
  • Next by Date: Re: crash on OS X when popover closes
  • Previous by thread: Re: Order of Finder labels
  • Next by thread: Re: Convert to Objective-C ARC Syntax Error
  • Index(es):
    • Date
    • Thread