Y
Hacker News
new
|
ask
|
show
|
jobs
by
UK-AL
4501 days ago
"Singletons are not for managing lifetime as well" - No, but you can replace it with something that does. I.E Single Object with application lifetime vs singleton.
1 comments
d0
4501 days ago
Or a singleton that exposes a service locator (which is the pattern I've been using in Cocoa).
link