Returns the unique shared ABAddressBook object.
SDK
- macOS 10.2+
Framework
- Address
Book
Declaration
func ABGetSharedAddressBook() -> Unmanaged<ABAddress Book Ref>!
Return Value
The address book for the logged-in user. You are responsible for retaining and releasing this object as needed.
Discussion
Every application shares the address book for the logged-in user and this function returns it. If you call this function more than once or try to create a new address book, you get a pointer to the same shared address book.