mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
978d2cd023
commit
a207342ff5
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue