• 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: Question on editing contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on editing contexts


  • Subject: Re: Question on editing contexts
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 20 Jul 2004 16:14:53 -0700

On Jul 20, 2004, at 3:51 PM, Steve Sharman wrote:

Hi,

I've got what is probably quite a naive question on editing contexts.

If an object A in my application automatically fetches an object B through a relationship (e.g. if A is Organisation, and B is Rooms, and there is a relationship A <-->> B, and I display a page which shows all the rooms for an organisation in a table within a WORepetition), are all of the B objects fetched automatically inserted into an editing context (the default one, I guess)?

No. Inserting is for new objects that are not yet in the database. The B objects are fetched (if not previously) and then *faulted* (see EOFaulting) into the editing context.


If so, can I make changes to one of the retrieved B objects using it's methods and save these changes by saving changes on the defaultEditingContext,
Yes, that is the proper way to do things.

Chuck
_______________________________________________
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: 
 >Question on editing contexts (From: Steve Sharman <email@hidden>)

  • Prev by Date: Re: Duplicate record
  • Next by Date: supplying an initial selection in WOPopUpButton and its kin
  • Previous by thread: Question on editing contexts
  • Next by thread: Re: Question on editing contexts
  • Index(es):
    • Date
    • Thread