GitXplorerGitXplorer
b

HSCountingInputStream

public
47 stars
7 forks
1 issues

Commits

List of commits on branch master.
Unverified
2887a992e981045145e6b23b62afd0380ffb0d02

Maintain the delegate contract.

bbjhomer committed 13 years ago
Unverified
b1f053716bb2b2e06ebe638511ea8be5850bf12a

-setDelegate:nil should default to `self`.

bbjhomer committed 13 years ago
Unverified
cbbf7d177f7f5824f211da2ca79e0b3761e303aa

Fix setting delegate to nil.

bbjhomer committed 14 years ago
Unverified
3b61aa5fbc7c03c9b4f8939772b4d4948aa61416

Merge remote-tracking branch 'origin/master'

bbjhomer committed 14 years ago
Unverified
d863fac0cc9bd65db7f59e2236dd4521f3724eae

Reset the delegate properly as specified by the docs.

bbjhomer committed 14 years ago
Unverified
a27eeeb8552c62d6a56cfe5229280011d1d873c2

Add HSRandomDataInputStream

committed 14 years ago

README

The README file for this repository.

HSCountingInputStream is a simple example of an NSInputStream subclass that works around the bugs you'll run into if you try to pass such a subclass to NSURLRequest or CFHTTPMessageRef. See my blog for more information on the gory details of how it works.

Note:

This sample uses a few language features only available if you're using Xcode 4 and the LLVM Compiler 2.0, such as instance variables defined in the @implementation block. It also relies on the modern runtime to synthesize the instance variables. I used these features because they're cool and I wanted people to be aware of them.

So if it won't compile for you, that's probably why. It shouldn't be hard to make the necessary changes to make it work for x86 or GCC 4.2, if that's what you need to do.