NSData and Mapped Files and Cleanup

Tom Harrington posted a clever (in a good way) solution to the problem of cleaning up an internal data structure used in a category in Extending NSData and (not) Overriding dealloc.

Really what I’d like to do is wrap the code above into a convenient API where you can create the mapped NSData, use it, and dispose of it normally. Any extra cleanup should just happen.

17 Feb 2012