Re: I can't step into any message of Objective-C object
Re: I can't step into any message of Objective-C object
- Subject: Re: I can't step into any message of Objective-C object
- From: Chan-gu Lee <email@hidden>
- Date: Sun, 30 Mar 2008 11:48:40 +0900
Hi, Jeffrey.
Thank to your your reply.
I inserted code fragment, and tested as you suggested.
The return value of [m_MyData
respondsToSelector:@selector(setNumber:)] is YES, and the codes in
block of if statement work well.
Regards.
Chan-gu Lee.
2008. 03. 30, 오전 11:33, Jeffrey Oleander 작성:
Chan-gu Lee <email@hidden> wrote:
2008. 03. 30, ���� 12:30, Shawn Erickson
�ۼ�:
On Sat, 2008 Mar 29, at 06:44, Chan-gu Lee
<email@hidden> wrote:
I have some code to debug, and I need to trace it.
However, when I tried to step into message call to
Objective-C, Xcode does step-over.
Here is an example code.
int new_number = [[m_TextField stringValue]
intValue] ;
What happens when you insert introspection method(s) here?
if ([m_MyData respondsToSelector:@selector(setNumber:)])
{
// dosomething
}
[m_MyData setNumber:new_number] ;
}
'>>' means current pc counter.
When I do step-into m_MyData::setNumer here, Xcode
just go to the next line, not to the entry point of
setNumber.
Is m_MyData nil?
-Shawn
Thanks for your reply.
However, m_MyData isn't nil. It's a valid object.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden