EOEditingContext.isDisposed() ... ?
EOEditingContext.isDisposed() ... ?
- Subject: EOEditingContext.isDisposed() ... ?
- From: Farrukh Ijaz <email@hidden>
- Date: Fri, 3 Sep 2010 21:53:43 +0300
Hi,
Is there a way to check if the editingContext is disposed? I guess there should be something called isDisposed(), it is useful for following scenario.
private EOEditingContext _editingContext;
public EOEditingContext editingContext() {
if(_editingContext == null || _editingContext.isDisposed()) {
_editingContext = ERXEC.newEditingContext();
}
return _editingContext;
}
This ensures that whenever the call is made to editingContext(), the editing context will be valid.
Just a thought.
Farrukh _______________________________________________
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