• 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: A Bad Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Bad Bug?


  • Subject: Re: A Bad Bug?
  • From: Robert Walker <email@hidden>
  • Date: Tue, 19 Sep 2006 14:20:08 -0400


On Sep 19, 2006, at 12:24 PM, Kieran Kelleher wrote:

The SOLUTION was to change my code to use
eoSourceObject.addObjectToBothSidesOfRelationshipWithKey( destObject, relationshipKey);

.....but WHY does not takeValueForKey or takeStoredValueForKey not set the relationship both ways?

Simple answer; because it was not designed to do that.  And no this is not a bug.  My only guess is that there was a reason the designers of EOF chose to implement it that way.  Given that takeValueForKey is used not only for relationships, but also attributes would probably have something to do with this.  Those KVC methods are not designed to manipulate relationships.  The method addObjectToBothSidesOfRelationshipWithKey(object, relationshipKey) is provided for just this purpose.
--
Robert Walker
email@hidden



 _______________________________________________
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: A Bad Bug?
      • From: Kieran Kelleher <email@hidden>
References: 
 >A Bad Bug? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: WOApp disappearing
  • Next by Date: Re: A Bad Bug?
  • Previous by thread: Re: A Bad Bug?
  • Next by thread: Re: A Bad Bug?
  • Index(es):
    • Date
    • Thread