• 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: Using ERXEC with defaultEditingContext?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using ERXEC with defaultEditingContext?


  • Subject: Re: Using ERXEC with defaultEditingContext?
  • From: David LeBer <email@hidden>
  • Date: Tue, 14 Oct 2008 23:18:34 -0400

[Please keep replies on the list]

On 14-Oct-08, at 11:04 PM, Jeff Schmitz wrote:

Thanks, and just to be sure, no locking or unlocking at all if just using these contexts within a single session and single thread, right?

As long as you enable autolocking with the appropriate settings in your app properties and always use the ERXEC.newEditingContext() factory method to generate your new EOEditingContext.


<http://davidleber.net/?p=282>





On Oct 14, 2008, at 9:58 PM, David LeBer wrote:


On 14-Oct-08, at 10:51 PM, Jeff Schmitz wrote:

After some "thorough" research, I've decided I need to use new ERXEC editing contexts instead of using the Session defaultEditingContext everywhere, especially in cases where I'm make changes to EO's. I had a question about the ERXEC documentation. It states:

"... you will need to use this class and its subclasses exclusively as your ECs, it also contains a factory class to create editing contexts. ...

Does this mean, if I an ERXEC editing context, I can't use the Session's defaultEditingContext anywhere in my application?

No.

If you are using Wonder and doing the 'using Wonder' things:

Your Application class subclasses ERXApplication
Your Session class subclassess ERXSession

Then your Session defaultEditignContext IS an ERXEC vended editing context. Its magic that Project Wonder...

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org






;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: 	http://codeferous.com
blog: 	http://davidleber.net
profile:	http://www.linkedin.com/in/davidleber
twitter:	http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




_______________________________________________ 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: Using ERXEC with defaultEditingContext?
      • From: David Avendasora <email@hidden>
References: 
 >Using ERXEC with defaultEditingContext? (From: Jeff Schmitz <email@hidden>)
 >Re: Using ERXEC with defaultEditingContext? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Using ERXEC with defaultEditingContext?
  • Next by Date: Re: You crossed editing context boundaries...
  • Previous by thread: Re: Using ERXEC with defaultEditingContext?
  • Next by thread: Re: Using ERXEC with defaultEditingContext?
  • Index(es):
    • Date
    • Thread