Nicolas Goutaland

5pods

GONCategories

Just a bunch of categories I wrote and I am using for years now. Some may are pure syntactic sugar. ARC only

License: MIT

  • Objective C

GONMacros

Just a bunch of useful macros ARC only

License: MIT

  • Objective C

GONMarkupParser

Creating rich text under iOS can be cumbersome, needing a lot of code. The main goal of GONMarkupParser is to provide an easy to use syntax, near XML/HTML, but more flexible. Some others projects exists, allowing you to build NSAttributedString from HTML, but my main goal here was to focus on text semantic. In fact, the parser will detect registered markup and apply style on text. The purpose of this was to be able to generate different outputs from the same input string, without editing its content, but editing the markups style.

GONMarkupParser is not an out of the box solution to parse HTML files. ARC only

License: MIT

  • Objective C

LazyProperty

    One line lazy property definition, with auto triggering, custom selectors

ARC only, XCode 4.4 minimum (For auto synthesized properties)

Dealing with lazy properties can be cumbersome sometimes, copy/pasting same code again and again. This code can be disturbing when reading source file. Sometimes, you have to execute some code on property initialisation.

License: MIT

  • Objective C

NSString+Color

NSString category allowing you to create UIColor from it.

This allows you to create color from hexadecimal representation or color name, such as @"#FF4465", @"red", @"antiquewhite" As a bonus, category also embeds a list of predefined web colors, according to http://en.wikipedia.org/wiki/Web_colors Category also works with FPBrandColors, UIColor-FlatColors and UIColor-CSSColors, since these are categories for UIColor.

Main use case is when loading color configuration from configuration file. Last version add some method allowing you to register custom colors code, to be used afterward, allowing you to style your application with color codes.

ARC only

License: MIT

  • Objective C