• 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: When (not) to use session().defaultEditingContext()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When (not) to use session().defaultEditingContext()


  • Subject: Re: When (not) to use session().defaultEditingContext()
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 29 Oct 2004 13:09:07 -0700

It may have done that long ago, I have some vague recollection of some docs about that, but I've been assured that it is very efficient now. Tests prove this. IIRC, if you browse the EOCusomObject class there is a method called something like __setEditingContext(). I'd guess the EC calls that when the object gets registered in it.

Chuck


On Oct 29, 2004, at 12:01 PM, Geoff Hopson wrote:

I'm not so sure that's a good thing to do. I recall that if you ask an
EO for it's editing context, a general message is sent out to the object
store coordinator saying "Does any one of the editing contexts under
your control have me as an object instance in their object graph?". The
object store coordinator then messages each of the ECs it knows about,
asking if they hold the specified instance.


If you have a system with 1000s of sessions/editing contexts, that's a
lot of messages.

It may have changed in more recent versions of WO. And if you have a low
usage system, you probably won't notice.


I'm sure the gurus will step in and correct me.

Geoff

On Fri, 2004-10-29 at 19:26, James Cicenia wrote:
My two cents..

the whole editing context thing was very confusing to me until I
realized that I could get the current
editing context of the object I am editing. This made it really easy
for me to understand.

Also, I use a lot of popup windows which allows me to transactionalize
those processes separately
and of course within their own editing context. I used ... I think it
was Jonathon Flemmings code to
handle locking and unlocking of the editing contexts.

-James Cicenia

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >RE: When (not) to use session().defaultEditingContext() (From: <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Ben Ketteridge <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Mark Morris <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Ben Ketteridge <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Chuck Hill <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Mark Morris <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: James Cicenia <email@hidden>)
 >Re: When (not) to use session().defaultEditingContext() (From: Geoff Hopson <email@hidden>)

  • Prev by Date: Re: WOTabPanel and text style
  • Next by Date: Re: When (not) to use session().defaultEditingContext()
  • Previous by thread: Re: When (not) to use session().defaultEditingContext()
  • Next by thread: Re: When (not) to use session().defaultEditingContext()
  • Index(es):
    • Date
    • Thread