2013/7/23 Riccardo Mottola <[email protected]>:
> I want to find  a good way to split this in MyClass-A, MyClass-B, etc by
> adding the least possible logic and especially keeping everything static ad
> build time (not runtime).

I am not sure I understood well, but I can guess a suggestion?
Could be done something like following? (I write in C++, but I think
there is an objc equivalent)

class MyClassSpecific
{
#if defined(_A_)
 <A stuff>
#elif defined(_B_)
  <B stuff>
#endif
};

class MyClass : public MyClassSpecific
{
  <common stuff>
};


-- 
Michele

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to