• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: displaygroup and relationship faulting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >displaygroup and relationship faulting (From: Jacob Mouka <email@hidden>)
 >Re: displaygroup and relationship faulting (From: Alexander Spohr <email@hidden>)
 >Re: displaygroup and relationship faulting (From: Jacob Mouka <email@hidden>)
 >Re: displaygroup and relationship faulting (From: Ken Anderson <email@hidden>)
 >Re: displaygroup and relationship faulting (From: Jacob Mouka <email@hidden>)

  • Prev by Date: Re: Flex integration with WO
  • Next by Date: Re: Flex integration with WO
  • Previous by thread: Re: displaygroup and relationship faulting
  • Next by thread: Newbie - WOHyperlink vs WOImageButton in D2W MenuHeader.wo template
  • Index(es):
    • Date
    • Thread