Instance Property

fileLabelColors

Returns the corresponding array of file label colors for the file labels.

Declaration

@property(readonly, copy) NSArray<NSColor *> *fileLabelColors;

Return Value

An array of NSColor objects.

Discussion

This array has the same number of elements as fileLabels, and the color at a given index corresponds to the label at the same index.

You can listen for notifications named NSWorkspaceDidChangeFileLabelsNotification to be notified when file labels change which may result in changes to the order of the fileLabelColors.

It is safe to call this method from any thread of your app.

See Also

Finder File Labels

fileLabels

Returns the array of file labels as strings.