CFStreamCreatePairWithSocketToHost and ARC


I know the book came out before Xcode 4.2, but would anyone know how to do the stream connection in connectToNotificationServer with ARC? I wasn’t able to figure out a way to bridge the cast between readStream and writeStream and the CF stream pointers that CFStreamCreatePairWithSocketToHost expects without errors.

And yeah, easy workaround, turn off ARC. :wink: Which I did. But just curious if anybody knew how to manage it, for my future coding…