Hi there
i am wondering what happens, if 2 threads writes to an object at the same time?
Not sure if this should be threads, i have multiple copies of a view, each copy access and writes to a nsuserdefault object.
What happens if two or more copies of the view writes to the same object? is there some kind of locking mechanism?
Thanks
The
NSUserDefaultsclass is thread-safe, see the documentation. So yes, there is probably some kind of locking mechanism inside.