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: Jens Alfke <email@hidden>
- Date: Tue, 6 Apr 2010 15:00:29 -0700
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