Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 17, 2008, 10:57 AM   #1
HARDWARRIOR
macrumors member
 
Join Date: Nov 2008
Can not view ABRecordCopyValue result in debugger

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
Attached Files
File Type: zip forumdebug.zip (17.4 KB, 7 views)
HARDWARRIOR is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
PHP debugger 3heap Mac Applications and Mac App Store 0 Oct 25, 2012 10:28 AM
debugger stopped seeing variables BRLara iPhone/iPad Programming 1 Sep 3, 2012 05:49 PM
Viewing values in the debugger KarlJay iPhone/iPad Programming 19 Aug 9, 2012 06:26 PM
Is there a way to view all songs in album from single result in iTunes? bluegrass527 Mac Basics and Help 3 Jul 28, 2012 08:08 PM
watching vars in debugger KarlJay iPhone/iPad Programming 0 Jul 11, 2012 11:57 AM

Forum Jump

All times are GMT -5. The time now is 03:54 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC