You are demonstrating the NSError use during an NSData call. The code creates a NSError *e, but uses a &error in the NSData code. Were these meant to be connected? In the following pages, the two are used together properly.
Yes, “NSError *e;” should have been “NSError *error;”. Thanks!