I just stumbled this code here on Stack Overflow:
-(id) init {
if (self = [super init]) {
//... Some code ...
}
return self;
}
Upon asking why we use this, and after searching via Google, I found that this is a classic way of doing it.
However I never saw ugh code when writing applications. Is this still used in Objective-C 2.0?