Le 2010-09-03 à 08:50, Kieran Kelleher a écrit :

> You need variation of usage #1
> 
> editingContext().lock();
> try {
>       
>       // Do your stuff
> 
> } finally {
>       editingContext().unlock();
> }

Just in case editingContext() doesn't return the same editing context (« Do 
your stuff » might change it), take a local copy of it:

EOEditingContext ec = editingContext();
ec.lock();
try {...} finally { ec.unlock(); }


jfv
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to