+initialize
When implementing a Cocoa Classes +initialize method, don’t forget to check if you are you, otherwise you might get called twice!
@implementation MyCustomClass
+(void)initialize {
if (self == [MyCustomClass class]) {
// do your stuff here!
}
}