A subclass of NSMutableArray that allows callers to register blocks to receive the value of an element in the array, even if that element does not exist yet.
Objective-C C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
HAAsyncMutableArray.xcodeproj
HAAsyncMutableArray
HAAsyncMutableArrayTests
.gitignore
MoreWarnings.xcconfig
README.md

README.md

HAAsyncMutableArray

A subclass of NSMutableArray that allows callers to register blocks to receive the value of an element in the array, even if that element does not exist yet.

This was created to solve a problem I was having with an iOS application that needed to access data in an array that was being populated by an asynchronous process.

Usage

[asyncArray objectAtIndex:0 withBlock:^(id obj) {
  // do something with obj
}];

// somewhere else
[asyncArray addObject:myAwesomeObject]

Author

Brad Greenlee (brad@hackarts.com)