[Project_owners] insertItemAt uncaught exception
Michael Vincent van Rantwijk
mv_van_rantwijk at yahoo.com
Mon Apr 23 15:34:12 PDT 2007
Renato R. (RRaver) wrote:
> Hi Neil, really this was the problem, the list was empty, so no item at the index...
> I switched back to appendItem and worked fine, but for some reason the "random
> list order" problem remains.
>
> I will try the Michael solution and use a normal for instead of for in to see if
> it fix the "random list order" problem...
>
> Thanks Neil and Michael for the much appreciated help!
The idea was to check the index, and to use insertItemAtIndex *only when
possible* and _fall back_ to appendItem when needed.
Michael
More information about the Project_owners
mailing list