diff options
author | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2015-07-20 12:49:01 -0700 |
---|---|---|
committer | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2015-07-20 12:49:01 -0700 |
commit | faced02c0562bd3379131f42c61fb1c2d901925d (patch) | |
tree | aa6008dd234ed66021aae38c3fc8581764678a57 /src/objc/pop/MCOPOPSession.h | |
parent | 9ca7b99c8c6627d239ff8de157b853a1fed45837 (diff) | |
parent | 340f5024cad5c719ab0be2cde79d4922d9ff39ba (diff) |
Merge pull request #1182 from lucasderraugh/master
Add nullability annotations
Diffstat (limited to 'src/objc/pop/MCOPOPSession.h')
-rw-r--r-- | src/objc/pop/MCOPOPSession.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/objc/pop/MCOPOPSession.h b/src/objc/pop/MCOPOPSession.h index bf1f8cf9..6daa2379 100644 --- a/src/objc/pop/MCOPOPSession.h +++ b/src/objc/pop/MCOPOPSession.h @@ -102,7 +102,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will fetch the list of messages. MCOPOPFetchMessagesOperation * op = [session fetchMessagesOperation]; - [op start:^(NSError * error, NSArray * messages) { + [op start:^(NSError * __nullable error, NSArray * messages) { // messages is an array of MCOPOPMessageInfo // [info index] can be used as reference for a given message in the other operations. }]; @@ -113,7 +113,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will fetch the header of the given message. MCOPOPFetchHeaderOperation * op = [session fetchHeaderOperationWithIndex:idx]; - [op start:^(NSError * error, MCOMessageHeader * header) { + [op start:^(NSError * __nullable error, MCOMessageHeader * header) { // header is the parsed header of the message. }]; */ @@ -123,7 +123,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will fetch the content of the given message. MCOPOPFetchMessageOperation * op = [session fetchMessageOperationWithIndex:idx]; - [op start:^(NSError * error, NSData * messageData) { + [op start:^(NSError * __nullable error, NSData * messageData) { // messageData is the RFC 822 formatted message data. }]; */ @@ -138,7 +138,7 @@ See MCOConnectionType for more information.*/ [indexes addIndex:2]; [indexes addIndex:3]; MCOPOPOperation * op = [session deleteMessagesOperationWithIndexes:indexes]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -148,7 +148,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will disconnect the session. MCOPOPOperation * op = [session disconnectOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -158,7 +158,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will check whether the POP account is valid. MCOPOPOperation * op = [session checkAccountOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ @@ -168,7 +168,7 @@ See MCOConnectionType for more information.*/ Returns an operation that will perform a No-Op operation. MCOPOPOperation * op = [session noopOperation]; - [op start:^(NSError * error) { + [op start:^(NSError * __nullable error) { ... }]; */ |