Re: Trying to get data from the AB
Re: Trying to get data from the AB
- Subject: Re: Trying to get data from the AB
- From: Development <email@hidden>
- Date: Tue, 6 Apr 2010 15:41:30 -0700
There is??
OMG, I forgot to mention I'm on iPhone.
On Apr 6, 2010, at 3:00 PM, Jens Alfke wrote:
>
> On Apr 6, 2010, at 11:48 AM, Development wrote:
>
>> ABMutableMultiValueRef multiValue = ABRecordCopyValue(person, kABPersonAddressProperty);
>> **Crashes here*** CFDictionaryRef dict = ABMultiValueCopyValueAtIndex(multiValue, 0);
>
> Did you check whether 'multiValue' is NULL? CF-based APIs don't like NULL inputs.
>
> Also, do you know that there is an Objective-C AB API too? There's no reason to use the C API in a Cocoa app.
>
> —Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden