Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3954138
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:03:37+00:00 2026-05-20T02:03:37+00:00

Working on an app that makes heavy use of the Address Book framework. There

  • 0

Working on an app that makes heavy use of the Address Book framework. There are a number of View Controllers that interact with Address Book data, and they all work just fine. Except for one, and it’s killing me.

I have a class that wraps address book access, in a method such as:

- (NSDictionary*)labelsToValues:(ABPropertyID)propertyID {
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordRef aRecord = ABAddressBookGetPersonWithRecordID(addressBook, [self recordIdFromAddressBookId]);

NSMutableDictionary *entries = [NSMutableDictionary dictionary];    

ABMultiValueRef multiValueProperty = ABRecordCopyValue(aRecord, propertyID);
// do some other stuff

And then I call it in places like this:

- (NSDictionary*)emailProperties {
return [self labelsToValues:kABPersonEmailProperty];
}

And it works! Of course it does, I’m sending the message with an argument that is a Constant from the Address Book framework. So it should always work!

But that’s not the case. This particular emailProperties: message is one that I’m calling in several places… and sometimes it works, but sometimes it doesn’t. When things go awry, I put it through the debugger and I get something like this:
enter image description here

How is that possible!? Even odder, if I sort of “prime” the problematic View Controller by viewing other View Controllers where everything behaves as expected, and then I return to the problematic View Controller, everything works fine. So, I’m guessing this is some sort of linking error, but I’m not sure how to even begin with troubleshooting that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:03:37+00:00Added an answer on May 20, 2026 at 2:03 am

    Turns out my question was a dupe of Address Book constants evaluating as zero, please vote to close.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a WP7 mango App that makes use of Linq2SQL for data
I'm currently working on a web app that makes heavy use of JSF and
I'm working on an MVC app that makes heavy use of Services. My question
I am working on a Rails 3.1 app that makes use of CoffeeScript. As
Motivation: I'm working on an app that makes several (client) phones read audio data
I'm working on a small app that makes use of the jQuery plugin Fullcalendar.
I'm working on an iPhone app that uses Core Data. The app makes a
I'm working on a location-based app that makes use of the CLLocationManager region monitoring.
I am working on a chatting app that makes use of flash sockets. I
So I'm working on a web app that makes use of the jquery mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.