respondsToSelector works in app project, not in library?
respondsToSelector works in app project, not in library?
- Subject: respondsToSelector works in app project, not in library?
- From: Alex Kac <email@hidden>
- Date: Mon, 12 Jan 2009 14:08:31 -0600
We have a piece of code that we have in the main source of a project
as well as a static library in another project.
SEL action = NSSelectorFromString(aServiceName);
if ([self respondsToSelector:action])
{
[self performSelector:action];
}
In the project where the above code is part of the main project - it
works great. In the static library it does nothing. To be clear -
respondsToSelector: returns true. So why would respondsToSelector
return true, but performSelector do nothing? ALso I get no error of
any kind in the console.
Alex Kac - President and Founder
Web Information Solutions, Inc.
"In the Country of the Blind, the one-eyed man is king."
--Desiderius Erasmus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden