• 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: Avoiding nulls along an EOQualifier's [toMany] keypaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoiding nulls along an EOQualifier's [toMany] keypaths


  • Subject: Re: Avoiding nulls along an EOQualifier's [toMany] keypaths
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Mon, 13 Nov 2006 07:08:34 -0500

Hi, Lachlan,

Couldn't you override valueForKeyPath in C to do a valueForKeyPath for the D within a try/catch block and catch the exceptions?

Regards,
Jerry

On Nov 13, 2006, at 2:01 AM, Lachlan Deck wrote:

Hi there,

I have some entities related as follows...
	A -->> B -->> C --> D

...and a qualifier...
new EOKeyValueQualifier( "b.c.d", EOQualifier.QualifierOperatorContains, myD );


...used for a display group to limit the view to those 'a' objects that contain any 'b's that have a relationship to any 'c' that is related to a particular 'd'.

The trouble is that some c's may have a null relationship for d. So, obviously, where relevant NSKeyValueCoding.NullValue's get substituted which cannot resolve the key "d"; and an exception is thrown.

Does anyone have any efficient work-a-rounds?

There's potentially a lot of objects involved - so it'll need to be somewhat efficient.

Thanks in advance...

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:
40gmail.com


This email sent to email@hidden


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
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


  • Follow-Ups:
    • Re: Avoiding nulls along an EOQualifier's [toMany] keypaths
      • From: Lachlan Deck <email@hidden>
References: 
 >Avoiding nulls along an EOQualifier's [toMany] keypaths (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Does someone know when the WO related WWDC 2006 videos will be available ?
  • Next by Date: To-one relationship not updated
  • Previous by thread: Avoiding nulls along an EOQualifier's [toMany] keypaths
  • Next by thread: Re: Avoiding nulls along an EOQualifier's [toMany] keypaths
  • Index(es):
    • Date
    • Thread