I’m alittle confused about the singleton and wondering if i missed something.
Now in the implementation of the class method defaultStore, we have
// Create the singleton
defaultStore = [[super allocWithZone:NULL] init];
Now, the creation of the singleton, particularly the super is kinda confusing me
In the book it actually mentions this, but at least for me, it’s not clear.
From the book
I was thinking, isn’t [self allocWithZone:nil] the one we want? By using super, isn’t that telling the compiler that the search for the method should begin at the superclass and proceed up the tree?