NSColorList Class

An NSColorList enables the storage of an ordered set of color presets, accessible by a key. NSColorList can replace hard-coded color values in source code, allowing for easier customization and changing of an application’s user interface.

A new NSColorList instance can be created in memory by calling -initWithName: and passing an NSString with the name of the color list.

When an application is launched the standard library paths are searched for Color directories containing files ending with the suffix .clr. A list of the currently available color lists can be retrieved using the class method +availableColorLists. This list only includes color lists read from disk. Newly created NSColorList instances are not included in this ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.