Re: insert object to displaygroup problem?
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.