I've seen this in an example-- In a class initialize, does this line have any purpose?
+(void)initialize
{
if (self == [ToolController self])
{
...
}
}
I have read that in a class method, self refers to the class and not an object. So in theory, wouldn't this check always result in true?
In my mind, that line would resolve to this:
ToolController == ToolController
So that's why I would think that it would always result in true. Am I missing something?