mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
NSURLDownload: export NSURLDownloadDelegate protocol
As of macOS 10.7, NSURLDownloadDelegate is exposed formally as a protocol. This adds the declaration to make this true for GNUstep.
This commit is contained in:
parent
6762a35539
commit
0888a7761f
1 changed files with 11 additions and 0 deletions
|
@ -119,7 +119,18 @@ extern "C" {
|
|||
/**
|
||||
* Protocol for delegate used to report the progress of the download.
|
||||
*/
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||
@protocol NSURLDownloadDelegate <NSObject>
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@optional
|
||||
#else
|
||||
@end
|
||||
@interface NSObject (NSURLDownloadDelegate)
|
||||
#endif
|
||||
#else
|
||||
@interface NSObject (NSURLDownloadDelegate)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Called immediately once the download has started.
|
||||
|
|
Loading…
Reference in a new issue