• 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
ec locking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ec locking


  • Subject: ec locking
  • From: Mike Schrag <email@hidden>
  • Date: Sun, 10 Apr 2005 11:14:36 -0400

I have a case where an object (call it Object A) is constructed with an EO. Later on, Object A is going to localInstanceOfObject the EO to edit it with its own created editing context. The issue I have is that the original EC of the passed-in EO goes away soon after constructing Object A, so I need to localInstanceOfObject the EO in the constructor of Object A (since I can't localInstanceOfObject after the original EO's EC is disposed). If I don't plan on EDITING the EO until later, can I wait until just prior to editing to lock the new EC, or do I need to lock the EC prior to doing even a localInstanceOfObject call? So the root question here is what operations on an EC actually require locking to prevent problems?

Thanks
ms
_______________________________________________
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: ec locking
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: SMTPHost Setting
  • Next by Date: OpenBase vs MySQL
  • Previous by thread: NSLogging through log4j
  • Next by thread: Re: ec locking
  • Index(es):
    • Date
    • Thread