In which way is singleton better than global variable? For example in NSUserDeafult case.
Jan Vrzal
1
I think that reasons using globals variables are unwise as much as reasons using singletons but in my option the singleton is marginally better than keeping a bunch of globals variables.
I see the singleton as a cleaner design solution but it’s just a personal choice.