I'd like to make some classes become friends of other classes at runtime. Is there a way to do this?
Alternatively, is there a way to access an object's public/protected/private ivars at runtime - or extend a class similar to Objective-C's category feature?
The use case here is that I'd like to be able to give a testing suite access to ivars in classes at runtime - but without polluting the application code with test suite specific code. The test framework could change, and will be different depending on the deployment platform.
Summary: find a way to keeping the application code clean and free from external framework artifacts.