Hidden method arguments

Objective-C automatically passes two hidden method arguments with ever method call:

  • self - the object that the method is executing inside
  • _cmd - method's message call

Here's an example of using _cmd:

NSLog(@"%@", NSStringFromSelector(_cmd));