Cocoa is full of singles. Is there a logical / conditional difference between when the Cocoa API uses
NSSingletonObject *so = [NSSingletonObject defaultSingleton];
against
NSSingletonObject *so = [NSSingletonObject sharedSingleton];
?
Not a huge thing, but I really don't understand why sometimes one is used compared to the other.
source
share