mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
NSURLConnection: expose NSURLConnectionDelegate as a protocol
Currently, NSURLConnectionDelegate methods were defined as a category of an NSObject. The same definitions were copied over to a new NSURLConnectionDelegate protocol, introduced in OSX 10.7.
This commit is contained in:
parent
8bd630f004
commit
e2831f34c1
1 changed files with 12 additions and 3 deletions
|
@ -142,7 +142,19 @@ extern "C" {
|
|||
* </item>
|
||||
* </list>
|
||||
*/
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST) && GS_API_VERSION(11300,GS_API_LATEST)
|
||||
@protocol NSURLConnectionDelegate <NSObject>
|
||||
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@optional
|
||||
#else
|
||||
@end
|
||||
@interface NSObject (NSURLConnectionDelegate)
|
||||
#endif
|
||||
|
||||
#else
|
||||
@interface NSObject (NSURLConnectionDelegate)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Instructs the delegate that authentication for challenge has
|
||||
|
@ -211,11 +223,8 @@ extern "C" {
|
|||
- (NSURLRequest *) connection: (NSURLConnection *)connection
|
||||
willSendRequest: (NSURLRequest *)request
|
||||
redirectResponse: (NSURLResponse *)response;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* An interface to perform synchronous loading of URL requests.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue