Questions tagged [abperson]

ABPerson is an object in Mac OS X's and iOS' Address Book application. It represents a single contact.

38 questions
1
vote
1 answer

Storing kABPersonImageFormatThumbnail for an address book contact

I'm trying to store the thumbnail for a contact in the address book. The following allows me to retrieve both the thumbnail and the full image: ABPersonCopyImageDataWithFormat(contactRef,…
Yasper
  • 501
  • 5
  • 23
1
vote
1 answer

Can Address Book records be linked programmatically?

ABPerson has api to get all "linked" person records. CFArrayRef ABPersonCopyArrayOfAllLinkedPeople ( ABRecordRef person ); What determines the return result of this call (i.e. how are links established)? My goal is to create a new address book…
Swany
  • 615
  • 8
  • 14
1
vote
0 answers

iPhone: How to merge linked phone number to contact

As suggested in this post it's possible to retrieve a "missing" phone number for a contact (when kABPersonPhoneProperty is empty, but a phone number is visible in the address book) on ios 6 by using the linked contacts array…
Dan
  • 173
  • 2
  • 18
1
vote
1 answer

ABPersonSetImageData Does Not Set Contact's Full Size Image for Incoming Calls

I am able to set a new contact's thumbnail image in the iPhone address book, however, the phone does not display a full screen version when that contact calls my phone. Instead, it only displays the thumbnail version on top of the screen, with my…
JRoss
  • 177
  • 10
  • 23
1
vote
0 answers

On Snow Leopard, why is -[ consumeImageData:forTag:] not being called after [ABPerson beginLoadingImageDataForClient:] is called?

I'm trying to load image date for person entries in the shared ABAddressBook. In particular, I'm calling -[ABPerson beginLoadingImageDataForClient:] and passing as the argument an object which adopts ABImageClient and…
Nate Chandler
  • 4,533
  • 1
  • 23
  • 32
1
vote
1 answer

can't save contact on device using address book - xcode

I've found a code to save a vcard to the device. This code works perfect on the simulator, but when trying the code on a device, I don't see the new contact. The code is: NSString *vCardString =…
NDM
  • 944
  • 9
  • 30
1
vote
1 answer

How to (easily) update an ABPerson object with a vCard and keep its unique ID?

The AddressBook Framework offers a great method for initializing an ABPerson with a vCard, by using the initWithVCardRepresentation: method. What I want to do is update a contact with a certain vCard. I can't use initWithVCardRepresentation: because…
Alex
  • 7,432
  • 20
  • 75
  • 118
1
vote
1 answer

Geographic address of person selected in person picker (ABPeoplePickerNavigationController), formatted

Showing a person picker with ABPeoplePickerNavigationController, I can get the address of the selected person in a dictionary with this: - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
1
vote
1 answer

Strange SyncServices / iSync console messages when saving ABAddressBook

I'm displaying and editing an ABPerson with an ABPersonView. I do this like so: ABPerson *person = (ABPerson *)[_addressBook recordForUniqueId:[curDict valueForKey:@"id"]]; [_personView setPerson:person]; [_personView setEditing:YES]; Where…
Maarten
  • 11
  • 2
0
votes
2 answers

PKContact and Zip code for non US contries

I am implementing apple pay for Canada, to know the location of user i should have his/her postal code to estimate shipping price. I input H4A2R4 as my postal code as shipping address for ApplePay. when I am trying to get info from PKContact it…
Ali
  • 287
  • 1
  • 2
  • 13
0
votes
1 answer

Address Book Person View in OS x not working after setHidden to Yes. Why?

I am using AB Person View in OS x application , it is working fine , but when i hide it like [self.abpersonView setHidden:YES]; and show it again by calling [self.abPersonView setHidden:NO]; it appears but its not even scrollable and clickable. I…
Hassan Malik
  • 559
  • 6
  • 20
0
votes
1 answer

kABPersonLastName not working

I use this code, for kABPersonEmailProperty it works, but for kABPersonLastNameProperty not. Why? NSMutableArray *allNumbers = [[NSMutableArray alloc] initWithCapacity:CFArrayGetCount(people)]; for (CFIndex i = 0; i < CFArrayGetCount(people); i++)…
0
votes
1 answer

How to observe ABPersonView changes for ABPerson

I know that ABPersonView is not KVO complaint. My issue is that despite declared property of ABPersonView being retained every time I access the property I get different object. Am I doing something wrong or is this correct that every time there was…
Marek H
  • 5,173
  • 3
  • 31
  • 42
0
votes
0 answers

Swift: Accessing OS X address book: "ABPerson is not convertible to ABPerson"

I am accessing the OS X address book like so: if let book = ABAddressBook.sharedAddressBook() { let people = book.people() as [ABPerson] for person in people { // Now I want to get the person's image to some variable …
iquellis
  • 979
  • 1
  • 8
  • 26
0
votes
1 answer

Not getting "-" "." " " while picking up a contact from phonebook from ABPerson

I want to get number as it is with "-" " " "." while picking up a contact from phone book here's my code . My main motive is to extract the country code from the number if + is present. Also please suggest me if there is any other way to access…