bennyguitar / Colours

A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.
MIT License
3.09k stars 300 forks source link

Add AGEColor implementation for better performances #29

Closed andreamazz closed 9 years ago

andreamazz commented 9 years ago

Hi. This is nitpicking really, but as you can read in this blog post when generating UI/NSColor you can improve performances of subsequent calls by caching the resulting object. This PR adds the macro calls to generate the colors just once. Cheers :beers:

bennyguitar commented 9 years ago

I like the idea, but I think I'm going to keep this clean and allow developers to cache the colors they need instead of handling it upstream. I appreciate the PR, @andreamazz, but I think I'm going to skip adding this right now.