Latest 1.0.0
Homepage https://github.com/klaaspieter/KPAColorFormatter
License MIT
Platforms osx 10.9, requires ARC
Authors

Introduction

A NSFormatter subclass that maps UIColor or NSColor instances to meaningful names

Installation

Add the following to your Podfile:

pod "KPAColorConvenience"

Usage

Use like any other NSFormatter. stringForObjectValue: maps colors to names and getObjectValue:forString:errorDescription: does the reverse.

Credits

The default color names were taken from http://chir.ag/projects/ntc/

Latest podspec

{
    "name": "KPAColorFormatter",
    "version": "1.0.0",
    "summary": "Format UIColor and NSColor instances to English names",
    "homepage": "https://github.com/klaaspieter/KPAColorFormatter",
    "license": "MIT",
    "authors": {
        "Klaas Pieter Annema": "[email protected]"
    },
    "platforms": {
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/klaaspieter/KPAColorFormatter.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "resources": [
        "Localizations/*.lproj",
        "colors.json"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This