• 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: Relationship across model boundaries failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relationship across model boundaries failing


  • Subject: Re: Relationship across model boundaries failing
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 30 May 2008 21:39:27 -0400


Now I'm just going to have to go look into fixing this in Wonder. How much effort is expended being scared of inverse faulting (which is a problem that seems like it really shouldn't be all THAT hard to fix with a little elbow grease)?
It will definitely take a little more magic to pull off completely and testing to see what the side-effects will be, but I have a prototype that shows this is pretty straightforward to do. The one catch is that includeObjectsInPropertyWithKey (or whatever that method is) does a containsObject(..) call before adding. To answer that question you have to fault the array. However, it appears to work OK if I just make that assume false if it's not faulted at that point. The downside of that is that willChange is called even though once the array is eventually faulted, it may turn out that it DIDN'T change (because it defers the uniqueness check until the fault actually fires). So basically you get too many willChange calls if you add duplicates to an unfaulted array. This doesn't appear to actually be a problem in the limited testing I did, though. Weekend time ...

ms

_______________________________________________
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: 
 >Relationship across model boundaries failing (From: Juergen Lorenz Simon <email@hidden>)
 >Fwd: Relationship across model boundaries failing (From: "Gennady Kushnir" <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Guido Neitzer <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Guido Neitzer <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Alan Ward <email@hidden>)
 >Re: Relationship across model boundaries failing (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Relationship across model boundaries failing
  • Next by Date: Wonder bug?
  • Previous by thread: Re: Relationship across model boundaries failing
  • Next by thread: Re: Relationship across model boundaries failing
  • Index(es):
    • Date
    • Thread