Re: Shared vs regular editing contexts
Re: Shared vs regular editing contexts
- Subject: Re: Shared vs regular editing contexts
- From: Arturo Pérez <email@hidden>
- Date: Wed, 11 Feb 2004 22:55:53 -0500
On Feb 10, 2004, at 12:52 PM, Jonathan Rochkind wrote:
Well the session's defaultEditing context is a shared one by default,
isn't it? So it's not like I'm going
out of my way to use it :-)
No. The session's defaultEditingContext() is not an
EOSharedEditingContext. Normally there is only one
EOSharedEditingContext in your app (it may be possible but probably
not desirable to create more). Which you can access from
EOSharedEditingContext.defaultSharedEditingContext().
Each session has it's own defaultEditingContext(), seperate from other
session's default ECs, and the defaultEditingContext is not (normally)
an EOSharedEditingContext.
Well then I must be doing something accidentally evil. Since none of
my EOs are marked as shared
and the session default EC isn't shared then I'm at a loss to explain
why I get the "Shared
object already fetched in non-shared context" error. Time to run a
grep to see what I'm doing
with _the_ shared EC and why.
Thanks for all the clarification.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
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.