diff options
Diffstat (limited to 'src/objc/nntp/MCONNTPSession.h')
-rw-r--r-- | src/objc/nntp/MCONNTPSession.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/objc/nntp/MCONNTPSession.h b/src/objc/nntp/MCONNTPSession.h index 083d973b..0637ec7e 100644 --- a/src/objc/nntp/MCONNTPSession.h +++ b/src/objc/nntp/MCONNTPSession.h @@ -100,7 +100,7 @@ Returns an operation that will fetch the list of article numbers. MCONNTPFetchAllArticlesOperation * op = [session fetchAllArticlesOperation:@"comp.lang.c"]; - [op start:^(NSError * error, MCOIndexSet * articles) { + [op start:^(NSError * __nullable error, MCOIndexSet * articles) { }]; */ - (MCONNTPFetchAllArticlesOperation *) fetchAllArticlesOperation:(NSString *)group; @@ -109,7 +109,7 @@ Returns an operation that will fetch the header of the given message. MCONNTPFetchHeaderOperation * op = [session fetchHeaderOperationWithIndex:idx inGroup:@"comp.lang.c"]; - [op start:^(NSError * error, MCOMessageHeader * header) { + [op start:^(NSError * __nullable error, MCOMessageHeader * header) { // header is the parsed header of the message. }]; */ @@ -119,7 +119,7 @@ Returns an operation that will fetch an overview (headers) for a set of messages. MCONNTPFetchHeaderOperation * op = [session fetchOverviewOperationWithIndexes:indexes inGroup:@"comp.lang.c"]; - [op start:^(NSError * error, NSArray * headers) { + [op start:^(NSError * __nullable error, NSArray * headers) { // headers are the parsed headers of each part of the overview. }]; */ @@ -129,7 +129,7 @@ Returns an operation that will fetch the content of the given message. MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithIndex:idx inGroup:@"comp.lang.c"]; - [op start:^(NSError * error, NSData * messageData) { + [op start:^(NSError * __nullable error, NSData * messageData) { // messageData is the RFC 822 formatted message data. }]; */ @@ -139,7 +139,7 @@ Returns an operation that will fetch the content of a message with the given messageID. MCONNTPFetchArticleOperation * op = [session fetchArticleOperationWithMessageID:@"<MessageID123@mail.google.com>" inGroup:@"comp.lang.c"]; - [op start:^(NSError * error, NSData * messageData) { + [op start:^(NSError * __nullable error, NSData * messageData) { // messageData is the RFC 822 formatted message data. }]; */ @@ -149,7 +149,7 @@ Returns an operation that will fetch the server's date and time. MCONNTPFetchArticleOperation * op = [session fetchServerDateOperation]; - [op start:^(NSError * error, NSDate * serverDate) { + [op start:^(NSError * __nullable error, NSDate * serverDate) { }]; */ - (MCONNTPFetchServerTimeOperation *) fetchServerDateOperation; @@ -158,7 +158,7 @@ Returns an operation that will list all available newsgroups. MCONNTPListNewsgroupsOperation * op = [session listAllNewsgroupsOperation]; - [op start:^(NSError * error, NSArray * subscribedGroups) { + [op start:^(NSError * __nullable error, NSArray * subscribedGroups) { }]; */ - (MCONNTPListNewsgroupsOperation *) listAllNewsgroupsOperation; @@ -167,7 +167,7 @@ Returns an operation that will list server-suggested default newsgroups. MCONNTPListNewsgroupsOperation * op = [session listDefaultNewsgroupsOperation]; - [op start:^(NSError * error, NSArray * defaultGroups) { + [op start:^(NSError * __nullable error, NSArray * defaultGroups) { }]; */ - (MCONNTPListNewsgroupsOperation *) listDefaultNewsgroupsOperation; @@ -176,7 +176,7 @@ Returns an operation that will disconnect the session. MCONNTPOperation * op = [session disconnectOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -186,7 +186,7 @@ Returns an operation that will check whether the NNTP account is valid. MCONNTPOperation * op = [session checkAccountOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ |