First make sure that you are calling the method that you think you are.
In your library version, maybe some other code replaces your method implementation (potentially though a category), or some code overrides your action. A have had a fair amount of success with stepping into disassembly and then out on the "other side" of the method invocation.

Jesper Storm Bache


On Jan 12, 2009, at 12:08 PM, Alex Kac wrote:

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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/jsbache%40adobe.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to