I have a group of controllers, most of whom share similar functionality.
For example:
- Controller A has method 1 and method 2.
- Controller B has method 2 and method 3.
- Controller C has method 1 and method 3.
Subclassing is not really an option here as I specifically don't want Controller B to have method 1.
Protocols are not really ideal either; They still require me to define duplicates of my methods in each controller.
Is there no way to define a method in one place and mix this functionality into classes as and when required in Objective C?