Cocoa osx mac select contact from address book

In my mac app, I want to select or import contacts from the address book list. I have looked a lot of posts, but only for iOS. I know that on iOS, you can display your contact list like this:

_addressBookController = [[ABPeoplePickerNavigationController alloc] init];
[_addressBookController setPeoplePickerDelegate:self];
[self presentViewController:_addressBookController animated:YES completion:nil]; 


enter image description here

How can I do this for mac?

Need help please. Thanks in advance.


source to share

1 answer

It's built right into the Interface Builder - the ABPeoplePickerView class that you can drag and drop into your xib just like any other.



All Articles