• 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: EO Object Lifespan / Editing Context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO Object Lifespan / Editing Context


  • Subject: Re: EO Object Lifespan / Editing Context
  • From: Art Isbell <email@hidden>
  • Date: Wed, 16 Jul 2003 08:58:10 -1000

On Wednesday, July 16, 2003, at 02:17  AM, Pierre Bernard wrote:

There are other instances where passing the EO from one page to another is more appropriate. E.g you go from a list to a detail page. Here you would have to make sure that when you manipulate multiple EOs all of them live in the same EC. Under WO versions prior to 5.2 you also have to ensure that the lifetime of the EC is no shorter than the livetime of the EOs you pass. To do this you can either pass the EC from page to page or have it atteached elsewhere. E.g. the default EC lioves as long as the session.

In most cases, the session's default editing context is sufficient, so in these cases, you shouldn't have to worry about editing context life span. However, there are some cases where the use of other editing contexts is advantageous; e.g., an EOSharedEditingContext or EOEditingContexts related to the sessions' default editing context as parent-to-child (i.e., nested) or as peer-to-peer. EOF is very flexible, but when learning WO and EOF, it's best to keep things as simple as possible.


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.

  • Prev by Date: RE: EO Object Lifespan / Editing Context
  • Next by Date: Re: WO 5.2 - NullPointerException in _eoForGID (2) (EOEditingContext)
  • Previous by thread: RE: EO Object Lifespan / Editing Context
  • Next by thread: Re: WO 5.2 - NullPointerException in _eoForGID (2) (EOEditingContext)
  • Index(es):
    • Date
    • Thread