Hi,

On 2005-04-04 08:37:57 +0100 Frederic Stark <[EMAIL PROTECTED]> wrote:
> 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.
(...)
> 
> NSEnumerator *e = [[[theDict allKeys]
>                        sortedArrayUsingSelector:@selector(compare:)]
>                            objectEnumerator];
> NSString *thePath;
> 
> while ((thePath = [e nextObject]))
>    // Do something with [theDict objectForKey:thePath];

Thanks, I stumbled upon this methods while searching for a solution, and your 
mail made me understand the usage better. It doesn't apply to my situation, 
since the order is not alphabetic, but it was good info nonetheless.

Best regards,

fsmunoz
-- 
Frederico Muñoz


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to