2 ms·
"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 singlet
by UK-AL 13y 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.
- d0 13y agoOr a singleton that exposes a service locator (which is the pattern I've been using in Cocoa).