Instance Property

fileLabels

Returns the array of file labels as strings.

Declaration

@property(readonly, copy) NSArray<NSString *> *fileLabels;

Return Value

An array of strings.

Discussion

You can listen for notifications named NSWorkspaceDidChangeFileLabelsNotification to be notified when file labels change.

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

See Also

Finder File Labels

fileLabelColors

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