Skip to content

Commit

Permalink
Attempt to removing annoying xcode files from project
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed Nov 8, 2008
1 parent d6eaa65 commit 65cd7ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8,026 deletions.
6 changes: 3 additions & 3 deletions ASIHTTPRequest.m
Expand Up @@ -262,7 +262,6 @@ - (void)loadRequest
[self setLastActivityTime:[[NSDate new] autorelease]]; [self setLastActivityTime:[[NSDate new] autorelease]];


// Wait for the request to finish // Wait for the request to finish
NSDate* endDate = [NSDate distantFuture];
while (!complete) { while (!complete) {


//See if we need to timeout //See if we need to timeout
Expand All @@ -283,8 +282,9 @@ - (void)loadRequest
break; break;
} }
[self updateProgressIndicators]; [self updateProgressIndicators];
CFRunLoopRunInMode(ASIHTTPRequestRunMode,0.5,YES);
//[[NSRunLoop currentRunLoop] runMode:NSRunLoopCommonModes beforeDate:endDate]; //This thread should wait for 1/4 second for the stream to do something. We'll stop early if it does.
CFRunLoopRunInMode(ASIHTTPRequestRunMode,0.25,YES);
} }


[pool release]; [pool release];
Expand Down
4 changes: 2 additions & 2 deletions ASIHTTPRequestTests.m
Expand Up @@ -227,7 +227,7 @@ - (void)testCookies
foundCookie = YES; foundCookie = YES;
success = [[cookie decodedValue] isEqualToString:@"This is the value"]; success = [[cookie decodedValue] isEqualToString:@"This is the value"];
STAssertTrue(success,@"Failed to store the correct value for a cookie"); STAssertTrue(success,@"Failed to store the correct value for a cookie");
success = [[cookie domain] isEqualToString:@".allseeing-i.com"]; success = [[cookie domain] isEqualToString:@"allseeing-i.com"];
STAssertTrue(success,@"Failed to store the correct domain for a cookie"); STAssertTrue(success,@"Failed to store the correct domain for a cookie");
success = [[cookie path] isEqualToString:@"/asi-http-request/tests"]; success = [[cookie path] isEqualToString:@"/asi-http-request/tests"];
STAssertTrue(success,@"Failed to store the correct path for a cookie"); STAssertTrue(success,@"Failed to store the correct path for a cookie");
Expand Down Expand Up @@ -279,7 +279,7 @@ - (void)testCookies
NSDictionary *cookieProperties = [[[NSMutableDictionary alloc] init] autorelease]; NSDictionary *cookieProperties = [[[NSMutableDictionary alloc] init] autorelease];
[cookieProperties setValue:@"Test Value" forKey:NSHTTPCookieValue]; [cookieProperties setValue:@"Test Value" forKey:NSHTTPCookieValue];
[cookieProperties setValue:@"ASIHTTPRequestTestCookie" forKey:NSHTTPCookieName]; [cookieProperties setValue:@"ASIHTTPRequestTestCookie" forKey:NSHTTPCookieName];
[cookieProperties setValue:@".allseeing-i.com" forKey:NSHTTPCookieDomain]; [cookieProperties setValue:@"allseeing-i.com" forKey:NSHTTPCookieDomain];
[cookieProperties setValue:[NSDate dateWithTimeIntervalSinceNow:60*60*4] forKey:NSHTTPCookieExpires]; [cookieProperties setValue:[NSDate dateWithTimeIntervalSinceNow:60*60*4] forKey:NSHTTPCookieExpires];
[cookieProperties setValue:@"/asi-http-request/tests" forKey:NSHTTPCookiePath]; [cookieProperties setValue:@"/asi-http-request/tests" forKey:NSHTTPCookiePath];
cookie = [[[NSHTTPCookie alloc] initWithProperties:cookieProperties] autorelease]; cookie = [[[NSHTTPCookie alloc] initWithProperties:cookieProperties] autorelease];
Expand Down

0 comments on commit 65cd7ab

Please sign in to comment.