• 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: insert object to displaygroup problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insert object to displaygroup problem?


  • Subject: Re: insert object to displaygroup problem?
  • From: Art Isbell <email@hidden>
  • Date: Thu, 15 Jul 2004 14:15:08 -1000

On Jul 15, 2004, at 2:10 PM, Kevin Xiaowen Ren wrote:

I setup with abcDisplayGroup.setMasterObject(item) .
After I add new object in this displaygroup by abcDisplayGroup.insert() and update it, I can get the abcDisplayGroup.allObbjects().count() is 1.


But this new object is not setup/create relationship to item object.

Many of us have decided that using WODisplayGroups adds unnecessary complexity, except when we need to display batches of objects. So you might consider merely inserting your new object into the default editing context, then sending the master object an addObjectToBothSidesOfRelationshipWithKey() message with the new object and relationship key as arguments.


Aloha,
Art
_______________________________________________
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.


References: 
 >insert object to displaygroup problem? (From: Kevin Xiaowen Ren <email@hidden>)

  • Prev by Date: insert object to displaygroup problem?
  • Next by Date: [Newbie] Direct action woes
  • Previous by thread: insert object to displaygroup problem?
  • Next by thread: [Newbie] Direct action woes
  • Index(es):
    • Date
    • Thread