Hi!
While I was playing with AddressBook routines in iPhone SDK, found that I can not view variable 'contact' in summary expression
of debugger's variable list in line #6 of following code:
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. Can somebody tell me what I am doing wrong?
PS I've attached a simple project with this code
While I was playing with AddressBook routines in iPhone SDK, found that I can not view variable 'contact' in summary expression
Code:
{(NSString *)ABRecordCopyValue($VAR, kABPersonFirstNameProperty)}
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));
}
PS I've attached a simple project with this code