Assertion failure ABPerson

Uli Kusterer kusterer at gmail.com
Wed Sep 12 06:06:10 PDT 2007


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