Why is using self allowed in static context in Objective-C?
I thought it was allowed and then I encountered memory errors that took me a week to find ou
+) are really just instance methods on a particular Class object. (did your mind just explode?) And since you have a self variable accessible in an instance method, you naturally have a self variable accessible in the class method as well.self points to the class itself.[self performAction] inside an instance method to invoke methods on this particular instance, you can do [self performClassAction] inside a class method to invoke methods on this particular class.Class objects are subclasses of NSObject. So you can use any NSObject instance method on any Class object. (did your mind just explode again?)