|
|
|
|
|
by hoopadoop
5455 days ago
|
|
The correct way to deal with it is to realise that if you need some settings that can be accessed/changed from many different classes then the design of your app is severely lacking. However, this doesn't necessarily that you need a more complex/sophisticated 'design'. ie. if you stick to TDD this situation is highly unlikely. Hopefully this will stem the tide of questions on Stack Overflow about different Objective-c singleton implementations. |
|
I'm also interested in hearing what is considered the best practice for things like passing around config options, an eventloop, or message bus.