Assertion failure ABPerson
Anthony Arthur
brianarthur at nc.rr.com
Wed Sep 12 07:05:47 PDT 2007
You are right, it is supposed to be an instance of ABMultiValue,
which was clear to me. I'm new to this framework, just started
reading up on it yesterday, and I kept imagining ABMultiValue as an
array. That's why I sort of blindly implemented it that way, now it
is obvious what I did wrong.
Thanks,
--Brian
On Sep 12, 2007, at 9:06 AM, Uli Kusterer wrote:
>
> On 12.09.2007, at 06:17, Anthony Arthur wrote:
>> if ([abKey isEqualToString:kABEmailProperty] || [abKey
>> isEqualToString:kABPhoneProperty]) {
>> [person setValue:[NSArray arrayWithObject:col] forKey:abKey];
>> }else{
>> [person setValue:col forKey:abKey];
>> }
>
> Have you set a breakpoint in which of the two cases it's failing?
> Only in one, both? Have you checked the docs? I vaguely remember
> that Address book has ABMultiValue and similar classes, so are you
> sure this should be an NSArray, and not some ABxxx class? What is
> "col"? Have you NSLogged its class to see if it is the class you
> expect?
>
> Cheers,
> -- M. Uli Kusterer
> http://www.zathras.de
>
>
More information about the MacOSX-dev
mailing list