• 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
EOEditingContext.isDisposed() ... ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: EOEditingContext.isDisposed() ... ?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WOO file
  • Next by Date: Re: WOO file
  • Previous by thread: Re: Synchronized Editing Context for Locking/Unlocking
  • Next by thread: Re: EOEditingContext.isDisposed() ... ?
  • Index(es):
    • Date
    • Thread