Am 22.06.2011 um 02:31 schrieb Nicola Pero: >> When I link gnustep-base in, then objc_msg_lookup throws an >> NSInvalidArgumentException, >> because of the unrecognized selector. So objc_msg_lookup is not something I >> can use. > > What are you trying to achieve ? If you just want to check if a class > responds to a > selector, why don't you simply use class_respondsToSelector() ? >
Hi Nicola it has been a while since my last FOSDEM :) Well what I am trying to achieve, is just what I wrote (why doesn't anyone seem to believe me :)). I want to lookup an implementation as fast as possible and note if it is forwarding or not at the same time. If I have to do it in two steps, it's just going to be a bit slower. But I'll probably have to do that. It's an optimization thingy, as you might have guessed. Ciao Nat! ------------------------------------------------------------ It's great when you have a tool to make programming easier, but you still must understand what it does or you're just replacing one set of problems with another set of more subtle problems. -- Raymond Chen _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
