• 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: Using a text formatter on a WOBuilder WOString object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a text formatter on a WOBuilder WOString object


  • Subject: Re: Using a text formatter on a WOBuilder WOString object
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 17 Jun 2003 18:11:59 -0700

Unless I have misunderstood, the problem is that a to-many relationship is
being inlcuded in a keypath whenn a single object resultis wanted.  Calling
valueForKey on an NSArray yields an NSArray.

If it was setup as you describe there would be no problem.


Chuck



At 09:02 PM 17/06/2003 -0400, Arturo Pirez wrote:
>
>On Tuesday, June 17, 2003, at 07:48  PM, Chuck Hill wrote:
>
>>> One of the actual bound values is:
>>> calllocation.arrivaltransit.fromberth.berth.outerharbor.othrcode
>>> (rootRec.toOne.toMany.toOne.toOne.fieldValue)
>>>
>> rootRec.toOne - returns Objects
>> rootRec.toOne.toMany - returns NSArray
>> rootRec.toOne.toMany.toOne - returns NSArray
>> rootRec.toOne.toMany.toOne.toOne - returns NSArray
>> rootRec.toOne.toMany.toOne.toOne.fieldValue - returns NSArray
>>
>> ...
>> Otherwise you are going to have to plan for and deal with (e.g. take
>> into
>> account in your design) the fact that rootRec.toOne.toMany is going to
>> return multiple values.
>>
>>
>Something baffling me about this problem and the proposed solutions.
>
>Say the WORepetition is bound to rootRec.toOne.toMany.  Then why is
>there a problem?
>
>In other words, the list variable in the WORepetition is bound to
>rootRec.toOne.toMany.
>The iterator is bound to an instance of the objects contained in the
>array rootRec.toOne.toMany
>(call the object class B).  The WOString within the WORepetition is
>bound to B.toOne.toOne.fieldValue.
>So how can this be causing a problem?
>
>-------
>WebObjects in Philadelphia.  You want a cheesesteak with that?
>
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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: Using a text formatter on a WOBuilder WOString object
      • From: Nat Fast <email@hidden>
References: 
 >Re: Using a text formatter on a WOBuilder WOString object (From: Chuck Hill <email@hidden>)
 >Re: Using a text formatter on a WOBuilder WOString object (From: Arturo PĂ©rez <email@hidden>)

  • Prev by Date: Re: Using a text formatter on a WOBuilder WOString object
  • Next by Date: Re: Using a text formatter on a WOBuilder WOString object
  • Previous by thread: Re: Using a text formatter on a WOBuilder WOString object
  • Next by thread: Re: Using a text formatter on a WOBuilder WOString object
  • Index(es):
    • Date
    • Thread