Re: Trying to get data from the AB

2010-04-06 Thread Development
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

Re: Trying to get data from the AB

2010-04-06 Thread Jens Alfke
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 l

Trying to get data from the AB

2010-04-06 Thread Development
I am using the following: [settings setObject:(NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty) forKey:@"First Name"]; [settings setObject:(NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty) forKey:@"Last Name"]; // AB