Permalink
Browse files

Update sample project for new structure

  • Loading branch information...
1 parent 10b7295 commit 584e29a32d773663bf8c9be32f13fcfa11b392e5 @adamjernst committed Dec 23, 2011
Showing with 14 additions and 1 deletion.
  1. +12 −0 Example/AEURLExample.xcodeproj/project.pbxproj
  2. +2 −1 Example/AEURLExample/AEViewController.m
View
12 Example/AEURLExample.xcodeproj/project.pbxproj
@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
+ C42113D814A4D012006E19D2 /* AEURLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = C42113D514A4D012006E19D2 /* AEURLRequestOperation.m */; };
+ C42113D914A4D012006E19D2 /* AEURLResponseProcessors.m in Sources */ = {isa = PBXBuildFile; fileRef = C42113D714A4D012006E19D2 /* AEURLResponseProcessors.m */; };
C448BB061447332A00228625 /* AEJSONProcessor.m in Sources */ = {isa = PBXBuildFile; fileRef = C448BB051447332A00228625 /* AEJSONProcessor.m */; };
C448BB1A14473D0A00228625 /* AEURLRequestFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = C448BB1914473D0A00228625 /* AEURLRequestFactory.m */; };
C4C186871445FF9C003DBCC0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4C186861445FF9C003DBCC0 /* UIKit.framework */; };
@@ -38,6 +40,10 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
+ C42113D414A4D012006E19D2 /* AEURLRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEURLRequestOperation.h; sourceTree = "<group>"; };
+ C42113D514A4D012006E19D2 /* AEURLRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AEURLRequestOperation.m; sourceTree = "<group>"; };
+ C42113D614A4D012006E19D2 /* AEURLResponseProcessors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEURLResponseProcessors.h; sourceTree = "<group>"; };
+ C42113D714A4D012006E19D2 /* AEURLResponseProcessors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AEURLResponseProcessors.m; sourceTree = "<group>"; };
C448BB041447332A00228625 /* AEJSONProcessor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEJSONProcessor.h; sourceTree = "<group>"; };
C448BB051447332A00228625 /* AEJSONProcessor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AEJSONProcessor.m; sourceTree = "<group>"; };
C448BB1814473D0A00228625 /* AEURLRequestFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEURLRequestFactory.h; sourceTree = "<group>"; };
@@ -181,6 +187,10 @@
C448BB1914473D0A00228625 /* AEURLRequestFactory.m */,
C4E6E3531447CCCB000AEDA7 /* AEExpect.h */,
C4E6E3541447CCCB000AEDA7 /* AEExpect.m */,
+ C42113D414A4D012006E19D2 /* AEURLRequestOperation.h */,
+ C42113D514A4D012006E19D2 /* AEURLRequestOperation.m */,
+ C42113D614A4D012006E19D2 /* AEURLResponseProcessors.h */,
+ C42113D714A4D012006E19D2 /* AEURLResponseProcessors.m */,
);
name = AEURLConnection;
path = ../AEURLConnection;
@@ -301,6 +311,8 @@
C448BB061447332A00228625 /* AEJSONProcessor.m in Sources */,
C448BB1A14473D0A00228625 /* AEURLRequestFactory.m in Sources */,
C4E6E3551447CCCB000AEDA7 /* AEExpect.m in Sources */,
+ C42113D814A4D012006E19D2 /* AEURLRequestOperation.m in Sources */,
+ C42113D914A4D012006E19D2 /* AEURLResponseProcessors.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
3 Example/AEURLExample/AEViewController.m
@@ -10,6 +10,7 @@
#import "AEURLConnection.h"
#import "AEJSONProcessor.h"
#import "AEExpect.h"
+#import "AEURLResponseProcessors.h"
@interface AEViewController ()
@property (nonatomic, retain) NSArray *keys;
@@ -33,7 +34,7 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://graph.facebook.com/137947732957611"]];
[AEURLConnection sendAsynchronousRequest:request
queue:[NSOperationQueue mainQueue]
- processor:[AEURLConnection chainedResponseProcessor:
+ processor:[AEURLResponseProcessors chainedResponseProcessor:
[AEExpect statusCode:[AEExpect defaultAcceptableStatusCodes]],
[AEExpect contentType:[AEJSONProcessor defaultAcceptableJSONContentTypes]],
[AEJSONProcessor JSONResponseProcessor], nil]

0 comments on commit 584e29a

Please sign in to comment.