Problem:
The + load implementation of a category of a Foundation class (NSData) is not called when the Category is part of a static library (.a).
If the code is moved to the project of the application that uses this library, + load is called. (So it's not a problem related to NSData apparently being a meta-class).
Based on the documentation, I would tend to believe that this should work also from a static library. Maybe something needs to be changed in the Static Library target settings in Xcode but so far I have not found something that resolves the issue.
Question:
Are the + load methods of categories called when the categories are defined in a static library? If they are, what could prevent this from happening?