This is just an NSOperation
method. The difference is as follows:
int main (int argc, const char * argv[])
Is a function of C where the program begins
- (void)main;
It is an objective-C class instance method .
The reason it has its own auto-release is because it is usually called a separate thread, so this new thread has to deal with automatically released objects.
source share