Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TTURLRequestDelegate is now a recommended delegate of TTURLRequest.

This allows cool things like passing a class as a delegate. Look forward
to more changes like this in the future.

The tradeoff here is that we don't get as many compile-time checks for
proper implementation of the delegate.
- You still get warnings if your class implements a delegate, but is missing
some required methods.
- You won't get warnings when you assign an object that doesn't implement a
delegate.
  • Loading branch information...
commit cf8d192635a44c27bcdc9efe02b3f88f6db169a3 1 parent 957e549
@jverkoey jverkoey authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/TTURLRequest.m
  2. +2 −2 src/Three20/TTURLRequest.h
View
4 src/TTURLRequest.m
@@ -40,11 +40,11 @@ + (TTURLRequest*)request {
return [[[TTURLRequest alloc] init] autorelease];
}
-+ (TTURLRequest*)requestWithURL:(NSString*)URL delegate:(id<TTURLRequestDelegate>)delegate {
++ (TTURLRequest*)requestWithURL:(NSString*)URL delegate:(id /*<TTURLRequestDelegate>*/)delegate {
return [[[TTURLRequest alloc] initWithURL:URL delegate:delegate] autorelease];
}
-- (id)initWithURL:(NSString*)URL delegate:(id<TTURLRequestDelegate>)delegate {
+- (id)initWithURL:(NSString*)URL delegate:(id /*<TTURLRequestDelegate>*/)delegate {
if (self = [self init]) {
_URL = [URL retain];
if (delegate) {
View
4 src/Three20/TTURLRequest.h
@@ -122,9 +122,9 @@
+ (TTURLRequest*)request;
-+ (TTURLRequest*)requestWithURL:(NSString*)URL delegate:(id<TTURLRequestDelegate>)delegate;
++ (TTURLRequest*)requestWithURL:(NSString*)URL delegate:(id /*<TTURLRequestDelegate>*/)delegate;
-- (id)initWithURL:(NSString*)URL delegate:(id<TTURLRequestDelegate>)delegate;
+- (id)initWithURL:(NSString*)URL delegate:(id /*<TTURLRequestDelegate>*/)delegate;
- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)field;

0 comments on commit cf8d192

Please sign in to comment.
Something went wrong with that request. Please try again.