View Full Version : Can not view ABRecordCopyValue result in debugger

Nov 17, 2008, 10:57 AM

While I was playing with AddressBook routines in iPhone SDK, found that I can not view variable 'contact' in summary expression
{(NSString *)ABRecordCopyValue($VAR, kABPersonFirstNameProperty)} of debugger's variable list in line #6 of following code:
ABAddressBookRef ab = ABAddressBookCreate();
NSArray *contacts = (NSArray *)ABAddressBookCopyArrayOfAllPeople(ab);

for(NSInteger i = 0; i < contacts.count; i ++) {
ABRecordRef contact = [contacts objectAtIndex:i];
NSLog(@"%@", (NSString *)ABRecordCopyValue(contact, kABPersonFirstNameProperty));

I mean while NSlog logs the same expression well, debugger shows summary column of variable 'contact' in grey and does not evalute it. Here how it looks like (http://idisk.mac.com/hardwarrior/Public/Pictures/Skitch/forumdebug_-_Debugger-20081117-222407.jpg). Can somebody tell me what I am doing wrong?

PS I've attached a simple project with this code