// // Fetcher.h // PicCast // // Created by Matthew Handler on 4/26/11. // Copyright 2011 Earl Industries. All rights reserved. // #import @protocol FetcherDelegate - (void) connection:(NSURLConnection *)connection failedWithError:(NSError *)error; - (void) connection:(NSURLConnection *)connection finishedWithData:(NSData *)data; @end @interface Fetcher : NSObject { NSMutableData *receivedData; id delegate; } @property (nonatomic, assign) id delegate; + (Fetcher *) initWithString:(NSString *)string andDelegate:(id )delegate; - (void) setUrlAndConnect:(NSString *)string; @end