On 08/27/2014 12:23 PM, Martin McClure wrote:
On 08/27/2014 12:14 PM, Yuriy Tymchuk wrote:Any ideas? https://stackoverflow.com/questions/25535202/change-superclass-programaticallyIt looks like sending #superclass: to the class would work.
Yes, I verified this works, though I didn't try any tricky cases where the old and new superclasses have different numbers of instvars, or instvars with different names. I'd expect those cases to require more sophisticated solutions.
Regards, -Martin
