I want to define a macro globally. I want to override NSLocalizedString() throughout my whole project. Is that possible and how do I do it?
2 Answers
Declare the macro in the #ifdef __OBJC__ section of your AppName-Prefix.pch.
2 Comments
Hot Licks
But be careful about "renaming" a common class, etc. Such things can bite you in unexpected ways.
cschuff
Thx. I'll override NSLocalizedString to call the very same function. I'll just change the Bundle it will be called on since i'm trying to achieve in-app localization (switching languages on-the-fly within the app). You still think this could cause problems? Anyways I'm alarmed :)