harlanhaskins / NSNull-TypeAdditions

A category on NSNull that auto-sanitizes API values.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSNull+TypeAdditions

NSNull+TypeAdditions is a category on NSNull that automatically sanitizes null inputs by providing implementations of common primitive type accessors. They return initialized blank values instead of crashing. This is super useful for web APIs that think that returning "null" won't crash NSJSONSerializer.

Installation

NSNull+TypeAdditions is on CocoaPods, so you can install it with this line at the end of your Podfile pod 'NSNull+TypeAdditions'

License

NSNull+TypeAdditions is released under the MIT License. You can find more information about that in the LICENSE file.

About

A category on NSNull that auto-sanitizes API values.

License:MIT License


Languages

Language:Objective-C 64.0%Language:Ruby 36.0%