For example:
@implementation MyClass{
NSNumber *something;
}
I would like to be able to add a few other like it at runtime to a particular object (just one instance), not the entire class. They already have pointers to other objects in them and I need MyClass to be able to use them.
The use case would be like this. I'm in another instance, call it A and I have some variables and a method, I would like to inject the variables and method into B, execute the method and them detach them, so object B is pristine.
*In the case of the method I would preferably not class_addMethod
it and would prefer to just send the implementation to Object A to execute it on itself.