Frederico Muñoz wrote:
The problem I'm having is that when I deserialize the data into a NSDictionary to perform the copy operations that
> filenames appear in random order,
NSDictionary's keys are not oredered. You should order them yourself.
If alphabetical order is fine, then, instead of:
NSEnumerator *e = [theDict keyEnumerator];
NSString *thePath;
while ((thePath = [e nextObject]))
// Do something with [theDict objectForKey:thePath];
Use:
NSEnumerator *e = [[[theDict allKeys]
sortedArrayUsingSelector:@selector(compare:)]
objectEnumerator];
NSString *thePath;
while ((thePath = [e nextObject]))
// Do something with [theDict objectForKey:thePath];
Cheers,
--fred
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev