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];
How can I do this for mac?
Need help please. Thanks in advance.
+3
user3065901
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.
https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AddressBook/Tasks/AccessingData.html
+3
Rupert pupkin
source
to share