I’m accessing the address book and have this line and am compiling using ARC:
ABMultiValueRef phoneNums = ABRecordCopyValue(person, kABPersonPhoneProperty);
Does this line need to be rewritten as:
ABMultiValueRef phoneNums = (__bridge_transfer ) ABRecordCopyValue(person, kABPersonPhoneProperty);
If yes then shouldn’t the compiler have generated a warning?
If not then maybe I don’t understand using ARC in conjunction with core framework thoroughly.
No, you should not bridge in this case.
ABMultiValueRefis aCFTypeRef.ABRecordCopyValuereturns aCFTypeRef. There is no bridge required.Bridge casting is required when you convert between
idandCFTypeRef(which is a synonym forvoid*).