mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Add guards for API version
This commit is contained in:
parent
85f590f88e
commit
f675da8c68
1 changed files with 8 additions and 2 deletions
|
@ -67,23 +67,27 @@ extern "C" {
|
|||
+ (NSURLConnection *) connectionWithRequest: (NSURLRequest *)request
|
||||
delegate: (id)delegate;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
/**
|
||||
* Start the asynchronous load. This method is only needed if NO is passed
|
||||
* into startImmediately when calling initWithRequest: delegate: startImmediately.
|
||||
*/
|
||||
- (void) start;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Cancel the asynchronous load in progress (if any) for this connection.
|
||||
*/
|
||||
- (void) cancel;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
- (void) scheduleInRunLoop: (NSRunLoop *)aRunLoop
|
||||
forMode: (NSRunLoopMode)mode;
|
||||
|
||||
- (void) unscheduleFromRunLoop: (NSRunLoop *)aRunLoop
|
||||
forMode: (NSRunLoopMode)mode;
|
||||
|
||||
#endif
|
||||
|
||||
/** <init />
|
||||
* Initialises the receiver with the specified request (performing
|
||||
* a deep copy so that the request does not change during loading)
|
||||
|
@ -99,6 +103,7 @@ extern "C" {
|
|||
*/
|
||||
- (id) initWithRequest: (NSURLRequest *)request delegate: (id)delegate;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
/** <init />
|
||||
* Initialises the receiver with the specified request (performing
|
||||
* a deep copy so that the request does not change during loading)
|
||||
|
@ -114,7 +119,8 @@ extern "C" {
|
|||
* releasing it when the connection finished loading, fails, or is cancelled.
|
||||
*/
|
||||
- (id) initWithRequest: (NSURLRequest *)request delegate: (id)delegate startImmediately: (BOOL)startImmediately;
|
||||
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue