<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/fileLabelColors",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(py)fileLabelColors"
  },
  "title" : "fileLabelColors"
}
-->

# fileLabelColors

The array of colors for the file labels.

```
var fileLabelColors: [NSColor] { get }
```

## Return Value

An array of `NSColor` objects.

## Discussion

This array has the same number of elements as [`fileLabels`](/documentation/AppKit/NSWorkspace/fileLabels), and the color at a given index corresponds to the label at the same index.

You can listen for notifications named [`didChangeFileLabelsNotification`](/documentation/AppKit/NSWorkspace/didChangeFileLabelsNotification) to be notified when file labels change that may result in changes to the order of the `fileLabelColors`.

You can safely call this method from any thread of your app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)