When inside an instance method, I can refer to the instance’s class via [self class], so I don’t have to write [MyClass class] explicitly.
How would I achieve the equivalent inside a class method? There is obviously no self defined in that context…
selfis defined inside a class method, but it refers to the class itself rather than to an instance of the class. So, in a class method, just useselfinstead of[self class].