On 05/08/2007, at 10:17 AM, Jacob Mouka wrote:
Hmm.. what you said gave me the hint to the problem! The code was
just to iterate over an array using an iterator:
for (Iterator iterator = events().iterator(); iterator.hasNext
();) { ...
Doing this the iterator is empty, because I'm guessing
_EOCheapCopyMutableArray.iterator() doesn't fire the fault.
But changing the code to this works just fine:
NSArray events = events();
for(int i=0; i<events.count(); i++) { ...
Ok, important lesson.. stay away from iterators. Thanks for your
help guys!
Actually, that's something that ProjectWOnder has a fix for. But I've
always used enumerators with NSArrays so have never noticed it.
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]