aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/pop/MCOPOPSession.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/pop/MCOPOPSession.h')
-rw-r--r--src/objc/pop/MCOPOPSession.h14
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) {
...
}];
*/