Re: isKindOfClass: fails in the debugger now?
Re: isKindOfClass: fails in the debugger now?
- Subject: Re: isKindOfClass: fails in the debugger now?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 15 Jul 2011 12:01:09 +0200
Le 15 juil. 2011 à 02:08, Laurent Daudelin a écrit : I thought I did use this many times before but I'm not sure if I'm missing something, each time I try something like:
(gdb) p (BOOL)[node isKindOfClass:(Class)[NSObject class]]
The stupid debugger returns: A syntax error in _expression_, near `]]'.
I can't see where the syntax error is. Am I blind or too tired?
(This is with 3.2.6 under SL)
That's may be a limitation in the gdb parser. Are you debugging Obj-C++ or Obj-C. If this is Obj-C++, it may come from 'class' that is interpreted as the class c++ keyword instead of the class selector. As gdb implements its own _expression_ parser, there is severe limitations in what it can parse.
Anyway, you can workaround this problem by using NSClassFromString(@"NSObject") instead of [NSObject class]
|
_______________________________________________
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