Hi
Does anyone know if the order is guaranteed when fetching objects from an NSArrayController with arrangedObjects? Assuming that I do not provide filters or sortdescriptors.
I have to fetch objects from core data. Calculate stuff and return the data to the objects in the exact same order as I originally fetched the objects.
Or do I have to override this method to ensure the same order?
I would say yes, of course. Both from the name of the method and my experience with NSTableviews binded to arrangedObjects.
But the documentation does not state it explicitly and I have to be 100% sure.
Does anyone know if the order is guaranteed when fetching objects from an NSArrayController with arrangedObjects? Assuming that I do not provide filters or sortdescriptors.
I have to fetch objects from core data. Calculate stuff and return the data to the objects in the exact same order as I originally fetched the objects.
Or do I have to override this method to ensure the same order?
Code:
- (NSArray *)arrangeObjects:(NSArray *)objects
I would say yes, of course. Both from the name of the method and my experience with NSTableviews binded to arrangedObjects.
But the documentation does not state it explicitly and I have to be 100% sure.