views:

35

answers:

1

I am currently removing this way:

[Refs setArray:[[NSSet setWithArray:Refs] allObjects]];

However i wish to keep the order of the array before the removeduplicates

Any tips ?

Thanks

A: 
for (int i=[mutableArray count]-1; i>0; i--) {
  if ([mutableArray indexOfObject: [mutableArray objectAtIndex: i]]<i)
    [mutableArray removeObjectAtIndex: i];
}
William Jockusch
Got it working after objectAtIndex remember the :