(I probably didn't phrase that very well!)
I'd like to pass a Class object into an Objective C function:
-(void)someMethod:(Class *)classObject { ...
And, if I want to restrict the parameter to classes who implement a particular protocol, I know I can do this:
-(void)someMethod:(Class<SomeProtocol> *)classObject { ...
But is it possible to do the same for Classes instead of Protocols?
To use the classic "I have a Dog class which extends Animal" example, can I restrict the parameter to accept [Animal class] and [Dog class], but not [Cheese class]?
Thanks in advance! Matthew