so in Objective-C I can have a reference to object that implements certain protocol like this:
id<MyAwesomeProtocol> object;
I could have a reference to some class, like this:
MyAwesomeClass *object;
I was wondering, what should I do to have reference to MyAwesomeClass, or any sub-class.
I could of course just use id but I’d like to know if there is any better way.
Thanks!
To have reference to an object of your class or its subclasses you still can write