Selector without any parameter

Well, let me face it. It took me sometime to write a simple selector, which does not take any parameter and then to successfully call it. The solution is overly simplified. If at all one need to define a selector, which does not take any parameter, it should be as below

- (void) myMethod
{
//Do Something
}

The call to this selector is also the simplest of all forms

[myObj myMethod]

Now, that may be confusing at some point as it confused me. The reason being, it is a general convention to see selectors with a “:” at the end. So in general terms a selector is known as with a “:” as

myMethod: , onUserCall:

etc. So the point is, if its defined not to take any parameters or does not take any arguements in its definition, then the method call will be just the selector name else it would always be with a “:”.