Post

Replies

Boosts

Views

Activity

Reply to How to define a Class instance type conforming to a protocol?
After digging a little deeper into The Objective-C Programming Language documentation, I actually found the exact answer to such a scenario: Protocols can’t be used to type class objects. Only instances can be statically typed to a protocol, just as only instances can be statically typed to a class. (However, at runtime, both classes and instances respond to a conformsToProtocol: message.) Which means that it's just not supported and I should implement this differently
Jan ’23