<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Cannot link to macOS address book - crashes and restarts"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126961#c56">Comment # 56</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Cannot link to macOS address book - crashes and restarts"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126961">bug 126961</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>(In reply to Stephan Bergmann from <a href="show_bug.cgi?id=126961#c55">comment #55</a>)
<span class="quote">>>...
>
> so apparently the call of
>
> > allRecords = ABCopyArrayOfAllPeople(addressBook);
>
> in MacabRecords::initialize
> (connectivity/source/drivers/macab/MacabRecords.cxx) returned null, which
> the code apparently does not expect.</span >
I had seen this but what I don't understand when reading
<a href="https://developer.apple.com/documentation/addressbook/1430121-abcopyarrayofallpeople">https://developer.apple.com/documentation/addressbook/1430121-abcopyarrayofallpeople</a>,
is even if it doesn't find any address book, ABCopyArrayOfAllPeople is expected
to return an empty array, so CFArrayGetCount could return 0.
<span class="quote">>
> I have no idea about the code in question or the relevant macOS APIs, but I
> notice that
> <<a href="https://developer.apple.com/documentation/addressbook?language=objc">https://developer.apple.com/documentation/addressbook?language=objc</a>> states
> "Important: Do not use the AddressBook framework in macOS 10.11 and later.
> Use the APIs defined in the Contacts framework instead."</span >
Argh, it's the main problem since it's not a 20 lines max patch which will fix
this but a big chunk of code. Considering it's on Base part and more
specifically on MacOs, unless you feel like working on it, there's slight
chance it'll be implemented.
So after last versions of Thunderbird which need Sqlite implementation (that we
don't have) to use addressbook instead of Mork, now we've got this, bad days
for those who want to use address book with LO, hope there are not too much and
find some workaround :-(</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>