abpeoplepickerview

ABPeoplePickerView - How do I get it to scroll to a selected record?

I'm using the ABPeoplePicker in a Mac OS X application. I've hooked up a button that changes the selected record to the default 'Me' record. This works fine, and the record gets selected, but, I need to scroll the table to see the selected record. NSTableView has the -scrollRowToVisible:(NSInteger)rowIndex method, but I can't find anyt...

Saving addressbookUI data to an array

I'm trying to save the kABFirstNamePropert, kABLastNameProperty and kABAddressProperty all saved into an array for recall later, I'm just not getting it, can anyone lend me a hand or point me in the right direction? Thanks. I'm a super NOOb on this. For the naming the strings: // setting the first name firstName.text = (NSString *)ABR...

I want to merge two object either in an array or prior to saving

I am saving the first and last name from ABpeoplepickerNavcontroller, I would like to merge the first and last name prior to saving into an array so that when i retrieve it, they would be together. The first code is the object being created: // setting the first name firstName.text = (NSString *)ABRecordCopyValue(person, kABPersonFirstN...

ABPeoplePicker Delegate pattern question

I have a subclassed UIViewController that's acting as an ABPeoplePicker Navigation Controller Delegate. This view controller calls this ABPeoplePicker in a few different situations and the problem I'm having is figuring out which situation I'm responding to in - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController...

how to hide some properties using ABPeoplePicker

greetings! when using peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person, a view with all of the contact's information is shown. I've seen apps which only display selected info only (e.g. phone numbers) how can I do this? I only want to display the ...

ABPeoplePickerNavigationController programmatic searching?

I want to pull up the user's address book and use the new PeoplePicker controller to slice the results to show just those that match a certain term. I see that UIPeoplePickerNavigationController has a search bar and search view embedded in it. Looks like pretty standard stuff, I've just never used it before. How would I get at that pro...

How to put my address book data into UITextField

ABAddressBookRef _addressBookRef = ABAddressBookCreate (); NSArray* allPeople = (NSArray *)ABAddressBookCopyArrayOfAllPeople(_addressBookRef); NSMutableArray* _allItems = [[NSMutableArray alloc] initWithCapacity:[allPeople count]]; // capacity is only a rough guess, but better than nothing for (id record in allPeople) { CFTypeRef pho...

Setting a prompt in an ABPeoplePickerNavigationController

I'm having trouble getting this code to set the prompt: // Create a PeoplePicker ABPeoplePickerNavigationController *objPeoplePicker = [[ABPeoplePickerNavigationController alloc] init]; [objPeoplePicker setPeoplePickerDelegate:self]; // Customize colors objPeoplePicker.topViewController.navigationController.navigationBar.tintColor = [U...

Can an ABPeoplePickerView instance be used multiple times?

I wrote a simple Mac OS X application to edit the notes of my Mac Address Book contacts. The program looks like this: Single screen: | ABPeoplePickerView on the left side || NSTextField on the right side | I've hooked up notifications so that whenever the selection in the ABPeoplePickerView changes, the text field gets updated and s...

Putting the "+" button on All Contacts

When I call -(IBAction)getContact { ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; picker.peoplePickerDelegate = self; // showing the picker [self presentModalViewController:picker animated:YES]; [picker release]; } All Contacts appears with the Cancel button on t...

Reload/Refresh an ABPersonViewController

In my app, users can view and edit their Address Book contacts. Right now, I'm trying to support iOS 4 backgrounding. Here's my problem. If a user is viewing a contact, say "John Appleseed" in my app, the user can then switch to the iPhone Address Book, open "John Appleseed," and change his contact info. If the user then switches back t...