Re: displaygroup and relationship faulting
Re: displaygroup and relationship faulting
- Subject: Re: displaygroup and relationship faulting
- From: Lachlan Deck <email@hidden>
- Date: Fri, 10 Aug 2007 14:48:29 +1000
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden