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:
Daniel Ferreira 2017-08-17 13:42:34 +10:00
parent 6762a35539
commit 0888a7761f

View file

@ -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.