Type Method

colorNamed:bundle:

Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle.

Declaration

+ (NSColor *)colorNamed:(NSColorName)name bundle:(NSBundle *)bundle;

Parameters

name

The name of the color to find.

bundle

The app bundle.

See Also

Loading Color Objects from Asset Catalogs

+ colorNamed:

Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the app's main bundle.

+ colorWithCatalogName:colorName:

Creates a color object using the specified asset catalog and color names.

NSColorName

The name of a color.