A direct answer to the question: yes, you can use __bridge_transferon NULL. But this is not the right question.
ABAddressBookCreateWithOptions. , error:
, . . " ".
.
error .error nil/NULL/0 () .
. API- . , CFError -1. "", NULL , , -1 NSError, , .
, CFError, ABAddressBookCreateWithOptions, NULL.
CFErrorRef cfError;
NSError *error;
ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, &cfError);
if (addressBookRef == NULL) {
error = (__bridge_transfer NSError *)cfError;
}
, , , , - 0-. , (, _thing1 _thing2 ):
- (id)bar {
if (_thing1) return NO;
if (_thing2) return 0;
return NULL;
}
, , , ... , . , - :
- (NSNumber *)someCalculationWithError:(NSError *)error {
return 0;
}