I have the following code:
self.temporaryImageArray = [(NSSet *)[[array objectAtIndex:0] images] allObjects]
The array contains the Band object from my CoreData model. It has an NSSet as a property called "images."
Now I use this temporaryImageArray to determine through timestamps whether images should be updated. I came across some very random behavior, and now my question is:
Does an object [NSSet allObjects] objects from a set in random order?
Is there a way to prevent this or put it back in order? This will greatly reduce the complexity of my code.
source share