• 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
Snapshot problems SOLVED, FOR REAL, NO JOKE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Snapshot problems SOLVED, FOR REAL, NO JOKE


  • Subject: Snapshot problems SOLVED, FOR REAL, NO JOKE
  • From: Steven Mark McCraw <email@hidden>
  • Date: Sun, 22 Apr 2007 15:27:43 -0400

Holy crap, people!  I finally got the stupid code to work without any hacks!  Ok, I'm excited because it's finally working, but things still may be broken all over the place.  I haven't tested extensively yet.  The problem?  NESTING THE EDITING CONTEXT.  I'm not kidding.  It was a matter of changing 

ERXEC.newEditingContext(session.defaultEditingContext())

to 

ERXEC.newEditingContext();

And if you're using Project Wonder's automatic locking, there are no problems (that I've found) with needing to lock.  Heck, I imagine you could keep an editing context in session like I was doing earlier and lock and unlock in awake/sleep as long as it wasn't nested in the session's default ec (although I have not bothered to verify this yet).

The more I think about it, why would you ever need to use a nested editing context instead of a component level peer editing context?  I guess I just got the idea stuck in my head because some Apple document I read (http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/Topics/ProgrammingTopics.39.html) recommended doing it that way.  Ok, I know this document is old, but it's the only document from Apple I could find on the subject.  I should really know better by now than to trust Apple WebObjects documentation.  Oh well, live and learn.

Thanks everybody!

Mark
 _______________________________________________
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: Snapshot problems SOLVED, FOR REAL, NO JOKE
      • From: Chuck Hill <email@hidden>
    • Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
      • From: Lachlan Deck <email@hidden>
    • Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Snapshot problems - Solved, sort of
  • Next by Date: Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
  • Previous by thread: Re: Snapshot problems - Solved, sort of
  • Next by thread: Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
  • Index(es):
    • Date
    • Thread