Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HARDWARRIOR

macrumors member
Original poster
Nov 17, 2008
52
0
Hi!

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)}
of debugger's variable list in line #6 of following code:
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. Can somebody tell me what I am doing wrong?

PS I've attached a simple project with this code
 

Attachments

  • forumdebug.zip
    17.4 KB · Views: 46
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.