• 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
Child Editing Contexts -- locking/unlocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Child Editing Contexts -- locking/unlocking


  • Subject: Child Editing Contexts -- locking/unlocking
  • From: Dana Kashubeck <email@hidden>
  • Date: Thu, 04 Aug 2005 11:47:56 -0400

I'm sorry if this is noise, but I've never worked with anything but the defaultEditingContext before and I want to make absolutely sure that I'm doing The Right Thing here.

I'm working on a wizard-like interface that resides in a framework. The user may be creating several new EO's that they decide at the end they don't want. Therefore, I don't want to put them in the defaultEditingContext when they are created because I don't want any changes to make their way there and get saved accidentally on some other page (all of our WO apps use defaultEditingContext exclusively). I figured this is a perfect place for a child editing context.

The first page will create the child editing context (defaultEditingContext is it's parent), fault in some needed objects from the defaultEditingContext, and put it into a userInfo dictionary in the Session. Each subsequent page will grab the child editing context from the session in it's init method.

Now, as long as I don't perform any sort of fetches or changes on EOs, etc. in the init method, I can simply lock the child editing context in each component's awake method and then unlock it in the corresponding sleep method, right? Also, I have to lock the newly created child editing context before faulting in the objects from it's parent, and then unlock it afterward, correct? Thanks in advance for your help!

--
-------------------------------------
Dana Kashubeck
Systems Manager
Riemer Reporting Service Inc.
http://www.riemer.com

Phone: 440-835-2477 x. 125
Fax:   440-835-4594
-------------------------------------


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

 _______________________________________________
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: Child Editing Contexts -- locking/unlocking
      • From: David LeBer <email@hidden>
  • Prev by Date: Re: lockRowComparingAttributes (yet again)
  • Next by Date: Re: Child Editing Contexts -- locking/unlocking
  • Previous by thread: Re: How to find out about installed WO Version
  • Next by thread: Re: Child Editing Contexts -- locking/unlocking
  • Index(es):
    • Date
    • Thread