I am trying to loop through an NSSet that has about 6500 items in it. I am using:
for (id Location in sortedArray) {
loc = [sortedArray objectAtIndex:i];
cord = [cord stringByAppendingString:[NSString stringWithFormat:@"%f,%f ",[loc.longitude doubleValue],[loc.latitude doubleValue]]];
i++;
}
This works fine, but it seems that it is NOT fast enough. It gets to about item 5700 and I get the following error:
Program received signal: “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
Is there a way to loop through data quicker than this? It takes about 20 seconds or more, and it seems like making the user wait this long it too much!
Ideas?