add some comments

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34862 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-03-02 09:09:15 +00:00
parent 978d2cd023
commit a207342ff5
2 changed files with 7 additions and 4 deletions

View file

@ -80,7 +80,9 @@ extern "C" {
* method, so the thread must run its current run loop
* (in NSDefaultRunLoopMode) for processing to continue/complete.<br />
* The delegate will receive callbacks informing it of the progress
* of the load.
* of the load.<br />
* This method breaks with convention and retains the delegate object,
* releasing it when the connection finished loading, fails, or is cancelled.
*/
- (id) initWithRequest: (NSURLRequest *)request delegate: (id)delegate;

View file

@ -218,9 +218,10 @@ typedef struct
}
}
/* According to bug #35686, Cocoa has a bizarre deviation from the convention
* that delegates are not retained here. For compatibility we retain the
* delegate and release it aggain when the operation is over.
/* According to bug #35686, Cocoa has a bizarre deviation from the
* convention that delegates are not retained here.
* For compatibility we retain the delegate and release it again
* when the operation is over.
*/
this->_delegate = [delegate retain];
this->_protocol = [[NSURLProtocol alloc]