• 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: Help! valueForKey does not follow relationships?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help! valueForKey does not follow relationships?


  • Subject: Re: Help! valueForKey does not follow relationships?
  • From: Scott Ellsworth <email@hidden>
  • Date: Fri, 11 Apr 2003 18:19:28 -0700

Resend of formerly longer message:

Hi, Art.

Thanks much for the reply.

On Friday, April 11, 2003, at 03:36  PM, Art Isbell wrote:

On Friday, April 11, 2003, at 11:46  AM, Scott Ellsworth wrote:

Does valueForKey or storedValueForKey on an EOEnterpriseObject follow toMany relationships?

Yep. I use valueForKey(), but I don't see why storedValueForKey() wouldn't work as well.

Noted. I shall switch to valueForKey at first op.

FWIW, printing out object shows, among other things, suggestedCustomers = "<com.webobjects.eocontrol._EOCheapCopyMutableArray 35cf9c (<EOAccessArrayFaultHandler suggestedCustomers _EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>".

So for this object, suggestedCustomers contains one object which hasn't been fetched yet (it's a fault). Accessing the lastName attribute should cause the fault to fire. Have you stopped execution in the debugger after "customers" is set in getCombinedValue() to examine "object" and its suggestedCustomers relationship?

That was what I had thought.

I set a breakpoint in project builder, executed the program, but it did not stop on my breakpoint.

I did print out object again after the set to see if it was no longer a fault, and got the following before:

suggestedCustomers = "<com.webobjects.eocontrol._EOCheapCopyMutableArray d1258b (<EOAccessArrayFaultHandler suggestedCustomers _EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>";

and after:

suggestedCustomers = "<com.webobjects.eocontrol._EOCheapCopyMutableArray d1258b (<EOAccessArrayFaultHandler suggestedCustomers _EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>";

but after valueForKeyPath,

suggestedCustomers = ()

I am now a bit confused...

Scott
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Help! valueForKey does not follow relationships?
      • From: Art Isbell <email@hidden>
References: 
 >Re: Help! valueForKey does not follow relationships? (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: Help! valueForKey does not follow relationships?
  • Next by Date: Re: Help! valueForKey does not follow relationships?
  • Previous by thread: Re: Help! valueForKey does not follow relationships?
  • Next by thread: Re: Help! valueForKey does not follow relationships?
  • Index(es):
    • Date
    • Thread