Cocoa Singleton conventions
Posted
by MikeyWard
on Stack Overflow
See other posts from Stack Overflow
or by MikeyWard
Published on 2010-05-25T14:38:38Z
Indexed on
2010/05/25
14:41 UTC
Read the original article
Hit count: 184
Cocoa is full of singletons. Is there a logical/conventional difference between when the Cocoa APIs use
NSSingletonObject *so = [NSSingletonObject defaultSingleton];
versus
NSSingletonObject *so = [NSSingletonObject sharedSingleton];
?
Not a huge thing, but I don't really see why sometimes one is used versus the other.
© Stack Overflow or respective owner