I hope i did not skip this part in the ObjC manual but is it possible to refer to a class from within one of its class methods?
Like in PHP you would use “this” to refer to the current instance, while “self” refers to the instance’s class the ObjC equivalent of “this” would be “self”, so what would be the ObjC equivalent of PHP’s “self”, if there is one?
I hope i did not skip this part in the ObjC manual but is
Share
Inside a class method,
selfrefers to the current class (the class’s Class object). Inside an instance method,selfrefers to the current instance of that class.