Objective C- Adding an object to an array, whilst mutating that object
By : Itis Itis
Date : March 29 2020, 07:55 AM
hop of those help? Yes, it's safe. The array only cares about storing a reference to the object. Any changes to the object itself are totally invisible to the array. Of course if one thread reads myObject = myArray [i] then that thread must be aware that the contents of the object could change at any time.