• 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: ERXEC.useSharedEditingContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXEC.useSharedEditingContext


  • Subject: Re: ERXEC.useSharedEditingContext
  • From: Dov Rosenberg <email@hidden>
  • Date: Thu, 21 May 2009 17:53:34 -0400
  • Thread-topic: ERXEC.useSharedEditingContext

You have to manually do a local instance of any object that was fetched
using a shared EC otherwise if you try doing an update - bad things happen.

We have used the shared EC for several years but it definitely has its share
of gotchas.

Dov

On 5/21/09 4:35 PM, "Mike Schrag" <email@hidden> wrote:

>> Maybe the property is controlling the setting of the shared editing
>> context
>> when you create a new EC like
>>
>> EOEditingContext ec = new EOEditingContext();
>> If (project wonder property = false){
>>    Ec.setSharedEditingContext(null);
>> }
> yes .. it is doing this ...
>
>> If your app uses the shared editing context you probably aren't
>> getting it
>> from the EO's ec - you are getting it from the Application
> i thought you could execute a fetch spec using your EC and if you
> fetch against a shared entity, it would go to your ec's associated sec
> and fetch into that, then local instance into your ec?  i never use
> this thing, though, so maybe my conception of that process is wrong.
>
> ms
>
>  _______________________________________________
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: ERXEC.useSharedEditingContext
      • From: Amedeo Mantica <email@hidden>
References: 
 >Re: ERXEC.useSharedEditingContext (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Question on fetching theory
  • Next by Date: Re: JavaFSAdaptor and non-working EO methods
  • Previous by thread: Re: ERXEC.useSharedEditingContext
  • Next by thread: Re: ERXEC.useSharedEditingContext
  • Index(es):
    • Date
    • Thread