I am trying to load a few contacts from the address book.
I create the address book in viewDidLoad and check for authorisation
if (!_addressBook) {
CFErrorRef error=NULL;
_addressBook=ABAddressBookCreateWithOptions(NULL, &error);
}
I then release it in dealloc
if (_addressBook) {
CFRelease(_addressBook);
_addressBook = NULL;
}
But I still get the following error.
Error, could not create MachMessagePort for database doctor (com.apple.ABDatabaseDoctor)
Is it due to a problem in memory allocation, permissions, or something else entirely?