Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Useful Objective-C stuff
Objective-C Shell
Tree: 27589925f6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Sample Code/SetJSONDemo
NSData+reallyMapped.h
NSData+reallyMapped.m
NSObject+deallocBlock.h
NSObject+deallocBlock.m
NSObject+setValuesForKeysWithJSONDictionary.h
NSObject+setValuesForKeysWithJSONDictionary.m
README.md

README.md

Atomic Tools

A collection of useful Objective-C code. Most of this has been blogged about at Cocoa is my Girlfriend.

  • NSObject+setValuesForKeysWithJSONDictionary.h: Safer alternative to setValuesForKeysWithDictionary: for use when importing JSON. Works with any object with declared properties corresponding to JSON dictionary keys. Detailed discussion is at CIMGF.

  • NSObject+deallocBlock.h: Add a block to any object that will execute when that object is deallocated. Described in detail at CIMGF.

  • NSData+reallyMapped.h: Create an NSData object using a memory mapped file. Works even though dataWithContentsOfMappedFile: is deprecated in iOS 5.0 and NSDataReadingMappedAlways doesn't always (despite the name) create memory mapped instances. Described in detail at CIMGF.

Important note

All code in this repository is designed for use with automated reference counting (ARC). If you are not using ARC you may experience memory leaks or worse.

Something went wrong with that request. Please try again.