• 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 (Goodbye Bill)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO Object Lifespan / Editing Context (Goodbye Bill)


  • Subject: Re: EO Object Lifespan / Editing Context (Goodbye Bill)
  • From: Ray Ackland <email@hidden>
  • Date: Fri, 18 Jul 2003 11:50:22 +1200

On Friday, Jul 18, 2003, at 10:36 Pacific/Auckland, Jonathan Rochkind wrote:

I wouldn't neccesarily say that's true, myself. Putting it in the Session is certainly one way to do that. But as a design choice, I wouldn't put it in the session unless it can really be thought of as an attribute of the Session. For instance, the currently logged in user is an attribute of the Session. A shopping basket is an attribute of the Session---it belongs to the current session, this makes sense.

I agree. I should note that my post is oversimplified. I did feel that adding qualifiers and different case scenarios would complicate matters in the case GB was speaking of. After all, I thought the previous posts provided accurate (but lengthy) information.


If the object you are talking about is an EO (that is, an object that is persistent in the db, through the EOF framework), this is a bad idea on a variety of grounds. An EO belongs to a specific Editing Context (EC). A typical editing context belongs to a certain session---and unless you are using an EOSharedEditingContext (not neccesarily for the beginner), it's dificult and not reccomended to do otherwise. There are a bunch of reasons storing an EO in Application state is really not a good idea.

Here I stand corrected. Application instance variables is not something I have played with (much) myself. I am taking note of the recent posts regarding EOSharedEditingContexts.
_______________________________________________
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: Can't modify EO objects! ARGH! =(
  • Next by Date: Re: Can't modify EO objects! ARGH! =(
  • Previous by thread: RE: EO Object Lifespan / Editing Context (Goodbye Bill)
  • Next by thread: Re: EO Object Lifespan / Editing Context (Goodbye Bill)
  • Index(es):
    • Date
    • Thread