Revision: 25121
          http://sourceforge.net/p/bibdesk/svn/25121
Author:   hofman
Date:     2020-12-02 17:06:03 +0000 (Wed, 02 Dec 2020)
Log Message:
-----------
Remove forward declaration header for NSURLSession

Modified Paths:
--------------
    trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj

Removed Paths:
-------------
    trunk/bibdesk/NSURLSession_BDSKForwardDeclarations.h

Modified: trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj
===================================================================
--- trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj     2020-12-02 17:04:45 UTC 
(rev 25120)
+++ trunk/bibdesk/Bibdesk.xcodeproj/project.pbxproj     2020-12-02 17:06:03 UTC 
(rev 25121)
@@ -686,7 +686,6 @@
                CEF5366B1192EFE400027C3C /* BDSKNotesOutlineView.m in Sources 
*/ = {isa = PBXBuildFile; fileRef = CEF536691192EFE400027C3C /* 
BDSKNotesOutlineView.m */; };
                CEF546100F56BDDB008A630F /* BDSKStringArrayFormatter.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CEF5460E0F56BDDB008A630F /* 
BDSKStringArrayFormatter.m */; };
                CEF63D0A10888A5A000A31E2 /* BDSKSeparatorCell.m in Sources */ = 
{isa = PBXBuildFile; fileRef = CEF63D0810888A5A000A31E2 /* BDSKSeparatorCell.m 
*/; };
-               CEF6E22922903C01009058C2 /* 
NSURLSession_BDSKForwardDeclarations.h in Headers */ = {isa = PBXBuildFile; 
fileRef = CEF6E21322903C01009058C2 /* NSURLSession_BDSKForwardDeclarations.h 
*/; };
                CEF71ADB0B91BBCB003A2771 /* BDSKNotesWindowController.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CEF71AD90B91BBCB003A2771 /* 
BDSKNotesWindowController.m */; };
                CEF7295709CC88AB00802D48 /* BDSKFieldSheetController.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CEF7295509CC88AB00802D48 /* 
BDSKFieldSheetController.m */; };
                CEF78D7621C0385900EB3A56 /* PreviewPreferences.tiff in 
Resources */ = {isa = PBXBuildFile; fileRef = CEF78D7521C0385900EB3A56 /* 
PreviewPreferences.tiff */; };
@@ -1828,7 +1827,6 @@
                CEF5C0310F5469E300DBC864 /* TestUnitTest.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= TestUnitTest.m; sourceTree = "<group>"; };
                CEF63D0710888A5A000A31E2 /* BDSKSeparatorCell.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
BDSKSeparatorCell.h; sourceTree = "<group>"; };
                CEF63D0810888A5A000A31E2 /* BDSKSeparatorCell.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= BDSKSeparatorCell.m; sourceTree = "<group>"; };
-               CEF6E21322903C01009058C2 /* 
NSURLSession_BDSKForwardDeclarations.h */ = {isa = PBXFileReference; 
fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
NSURLSession_BDSKForwardDeclarations.h; sourceTree = "<group>"; };
                CEF71AD80B91BBCB003A2771 /* BDSKNotesWindowController.h */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = BDSKNotesWindowController.h; sourceTree = "<group>"; };
                CEF71AD90B91BBCB003A2771 /* BDSKNotesWindowController.m */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = 
sourcecode.c.objc; path = BDSKNotesWindowController.m; sourceTree = "<group>"; 
};
                CEF7295409CC88AB00802D48 /* BDSKFieldSheetController.h */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = BDSKFieldSheetController.h; sourceTree = "<group>"; };
@@ -3289,7 +3287,6 @@
                                F9022C59075802E300C3F701 /* 
NSTask_BDSKExtensions.h */,
                                F9022CA00758038000C3F701 /* 
NSTextView_BDSKExtensions.h */,
                                F97AF8ED09575E8B00D1F1B0 /* 
NSURL_BDSKExtensions.h */,
-                               CEF6E21322903C01009058C2 /* 
NSURLSession_BDSKForwardDeclarations.h */,
                                CEDBE0570F4CDAD900190AF5 /* 
NSView_BDSKExtensions.h */,
                                CE4376F40D24341E00C993CF /* 
NSViewAnimation_BDSKExtensions.h */,
                                CEFD45860BFFC1F80027B933 /* 
NSWindow+Scripting.h */,
@@ -3639,7 +3636,6 @@
                                CE2A09D22245997A00A8F31C /* 
BDSKCompletionManager.h in Headers */,
                                CE2A0AE222459A5100A8F31C /* 
NSTask_BDSKExtensions.h in Headers */,
                                CE2A0A0C224599E900A8F31C /* 
BDSKGoogleScholarParser.h in Headers */,
-                               CEF6E22922903C01009058C2 /* 
NSURLSession_BDSKForwardDeclarations.h in Headers */,
                                CE2A09E4224599DB00A8F31C /* 
BDSKDownloadManager.h in Headers */,
                                CE2A0AEF22459A5100A8F31C /* WokSearchService.h 
in Headers */,
                                CE2A0A4A224599F600A8F31C /* 
BDSKPublicationsArray.h in Headers */,

Deleted: trunk/bibdesk/NSURLSession_BDSKForwardDeclarations.h
===================================================================
--- trunk/bibdesk/NSURLSession_BDSKForwardDeclarations.h        2020-12-02 
17:04:45 UTC (rev 25120)
+++ trunk/bibdesk/NSURLSession_BDSKForwardDeclarations.h        2020-12-02 
17:06:03 UTC (rev 25121)
@@ -1,251 +0,0 @@
-//
-//  NSURLSession_BDSKForwardDeclarations.h
-//  BibDesk
-//
-//  Created by Christiaan Hofman on 18/05/2019.
-/*
- This software is Copyright (c) 2019-2020
- Christiaan Hofman. All rights reserved.
- 
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 
- - Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 
- - Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- 
- - Neither the name of Christiaan Hofman nor the names of any
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
- 
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <Cocoa/Cocoa.h>
-
-#if SDK_BEFORE(10_9)
-
-@class NSURLSession;
-@class NSURLSessionTask;
-@class NSURLSessionDataTask;
-@class NSURLSessionDownloadTask;
-@class NSURLSessionConfiguration;
-
-@protocol NSURLSessionDelegate;
-
-#if __OBJC2__
-#define NSURLSESSION_AVAILABLE    10_9
-#else
-#define NSURLSESSION_AVAILABLE    10_10
-#endif
-
-FOUNDATION_EXPORT const int64_t NSURLSessionTransferSizeUnknown 
NS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);    /* -1LL */
-
-NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0)
-@interface NSURLSession : NSObject
-
-@property (class, readonly, strong) NSURLSession *sharedSession;
-
-+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration 
*)configuration;
-+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration 
*)configuration delegate:(nullable id <NSURLSessionDelegate>)delegate 
delegateQueue:(nullable NSOperationQueue *)queue;
-
-@property (readonly, retain) NSOperationQueue *delegateQueue;
-@property (nullable, readonly, retain) id <NSURLSessionDelegate> delegate;
-@property (readonly, copy) NSURLSessionConfiguration *configuration;
-
-@property (nullable, copy) NSString *sessionDescription;
-
-- (void)finishTasksAndInvalidate;
-
-- (void)invalidateAndCancel;
-
-- (void)resetWithCompletionHandler:(void (^)(void))completionHandler;
-- (void)flushWithCompletionHandler:(void (^)(void))completionHandler;
-
-- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request;
-- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url;
-- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request;
-- (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url;
-- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData;
-
-@end
-
-@interface NSURLSession (NSURLSessionAsynchronousConvenience)
-
-- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request 
completionHandler:(void (^)(NSData * _Nullable data, NSURLResponse * _Nullable 
response, NSError * _Nullable error))completionHandler;
-- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url completionHandler:(void 
(^)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * 
_Nullable error))completionHandler;
-
-- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request 
completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * 
_Nullable response, NSError * _Nullable error))completionHandler;
-- (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url 
completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * 
_Nullable response, NSError * _Nullable error))completionHandler;
-- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData 
completionHandler:(void (^)(NSURL * _Nullable location, NSURLResponse * 
_Nullable response, NSError * _Nullable error))completionHandler;
-
-@end
-
-typedef NS_ENUM(NSInteger, NSURLSessionTaskState) {
-    NSURLSessionTaskStateRunning = 0,
-    NSURLSessionTaskStateSuspended = 1,
-    NSURLSessionTaskStateCanceling = 2,
-    NSURLSessionTaskStateCompleted = 3,
-} NS_ENUM_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
-
-NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0)
-@interface NSURLSessionTask : NSObject <NSCopying, NSProgressReporting>
-
-@property (readonly)                 NSUInteger    taskIdentifier;
-@property (nullable, readonly, copy) NSURLRequest  *originalRequest;
-@property (nullable, readonly, copy) NSURLRequest  *currentRequest;
-@property (nullable, readonly, copy) NSURLResponse *response;
-
-
-@property (readonly) int64_t countOfBytesReceived;
-@property (readonly) int64_t countOfBytesSent;
-@property (readonly) int64_t countOfBytesExpectedToSend;
-@property (readonly) int64_t countOfBytesExpectedToReceive;
-@property (nullable, copy) NSString *taskDescription;
-@property (readonly) NSURLSessionTaskState state;
-@property (nullable, readonly, copy) NSError *error;
-
-- (void)cancel;
-- (void)suspend;
-- (void)resume;
-
-@end
-
-@interface NSURLSessionDataTask : NSURLSessionTask
-@end
-
-@interface NSURLSessionDownloadTask : NSURLSessionTask
-
-- (void)cancelByProducingResumeData:(void (^)(NSData * _Nullable 
resumeData))completionHandler;
-
-@end
-
-NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0)
-@interface NSURLSessionConfiguration : NSObject <NSCopying>
-
-@property (class, readonly, strong) NSURLSessionConfiguration 
*defaultSessionConfiguration;
-@property (class, readonly, strong) NSURLSessionConfiguration 
*ephemeralSessionConfiguration;
-@property (nullable, readonly, copy) NSString *identifier;
-@property NSURLRequestCachePolicy requestCachePolicy;
-@property NSTimeInterval timeoutIntervalForRequest;
-@property NSTimeInterval timeoutIntervalForResource;
-@property NSURLRequestNetworkServiceType networkServiceType;
-@property BOOL allowsCellularAccess;
-@property (nullable, copy) NSDictionary *connectionProxyDictionary;
-@property SSLProtocol TLSMinimumSupportedProtocol;
-@property SSLProtocol TLSMaximumSupportedProtocol;
-@property BOOL HTTPShouldUsePipelining;
-@property BOOL HTTPShouldSetCookies;
-@property NSHTTPCookieAcceptPolicy HTTPCookieAcceptPolicy;
-@property (nullable, copy) NSDictionary *HTTPAdditionalHeaders;
-@property NSInteger HTTPMaximumConnectionsPerHost;
-@property (nullable, retain) NSHTTPCookieStorage *HTTPCookieStorage;
-@property (nullable, retain) NSURLCredentialStorage *URLCredentialStorage;
-@property (nullable, retain) NSURLCache *URLCache;
-@property (nullable, copy) NSArray<Class> *protocolClasses;
-
-@end
-
-typedef NS_ENUM(NSInteger, NSURLSessionAuthChallengeDisposition) {
-    NSURLSessionAuthChallengeUseCredential = 0,
-    NSURLSessionAuthChallengePerformDefaultHandling = 1,
-    NSURLSessionAuthChallengeCancelAuthenticationChallenge = 2,
-    NSURLSessionAuthChallengeRejectProtectionSpace = 3,
-} NS_ENUM_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
-
-
-typedef NS_ENUM(NSInteger, NSURLSessionResponseDisposition) {
-    NSURLSessionResponseCancel = 0,
-    NSURLSessionResponseAllow = 1,
-    NSURLSessionResponseBecomeDownload = 2,
-} NS_ENUM_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
-
-@protocol NSURLSessionDelegate <NSObject>
-@optional
-
-- (void)URLSession:(NSURLSession *)session didBecomeInvalidWithError:(nullable 
NSError *)error;
-
-- (void)URLSession:(NSURLSession *)session 
didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
- completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, 
NSURLCredential * _Nullable credential))completionHandler;
-
-@end
-
-@protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
-@optional
-
-- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
-willPerformHTTPRedirection:(NSHTTPURLResponse *)response
-        newRequest:(NSURLRequest *)request
- completionHandler:(void (^)(NSURLRequest * _Nullable))completionHandler;
-- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
-didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
- completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, 
NSURLCredential * _Nullable credential))completionHandler;
-- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
- needNewBodyStream:(void (^)(NSInputStream * _Nullable 
bodyStream))completionHandler;
-- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
-   didSendBodyData:(int64_t)bytesSent
-    totalBytesSent:(int64_t)totalBytesSent
-totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
-- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
-didCompleteWithError:(nullable NSError *)error;
-
-@end
-
-@protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate>
-@optional
-
-- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask 
*)dataTask
-didReceiveResponse:(NSURLResponse *)response
- completionHandler:(void (^)(NSURLSessionResponseDisposition 
disposition))completionHandler;
-- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask 
*)dataTask
-didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask;
-- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask 
*)dataTask
-didBecomeStreamTask:(NSURLSessionStreamTask *)streamTask;
-- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask 
*)dataTask
-    didReceiveData:(NSData *)data;
-- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask 
*)dataTask
- willCacheResponse:(NSCachedURLResponse *)proposedResponse
- completionHandler:(void (^)(NSCachedURLResponse * _Nullable 
cachedResponse))completionHandler;
-
-@end
-
-@protocol NSURLSessionDownloadDelegate <NSURLSessionTaskDelegate>
-
-- (void)URLSession:(NSURLSession *)session 
downloadTask:(NSURLSessionDownloadTask *)downloadTask
-didFinishDownloadingToURL:(NSURL *)location;
-
-@optional
-
-- (void)URLSession:(NSURLSession *)session 
downloadTask:(NSURLSessionDownloadTask *)downloadTask
-      didWriteData:(int64_t)bytesWritten
- totalBytesWritten:(int64_t)totalBytesWritten
-totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
-- (void)URLSession:(NSURLSession *)session 
downloadTask:(NSURLSessionDownloadTask *)downloadTask
- didResumeAtOffset:(int64_t)fileOffset
-expectedTotalBytes:(int64_t)expectedTotalBytes;
-
-@end
-
-/* Key in the userInfo dictionary of an NSError received during a failed 
download. */
-FOUNDATION_EXPORT NSString * const NSURLSessionDownloadTaskResumeData 
NS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
-
-@interface NSURLSessionConfiguration (NSURLSessionDeprecated)
-+ (NSURLSessionConfiguration *)backgroundSessionConfiguration:(NSString 
*)identifier NS_DEPRECATED(NSURLSESSION_AVAILABLE, 10_10, 7_0, 8_0, "Please use 
backgroundSessionConfigurationWithIdentifier: instead");
-@end
-
-#endif

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to