• 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
shared EditingContext and WODisplayGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shared EditingContext and WODisplayGroup


  • Subject: shared EditingContext and WODisplayGroup
  • From: Michael Engelhart <email@hidden>
  • Date: Sun, 25 Jul 2004 21:47:05 -0500

Hello -

I have a page where the results are read only and would be a good candidate for a shared EC.

After not being able to find a method in WODisplayGroup to set the EC, i stumbled across some info regarding WODisplayGroup's use of the .woo file and I did some quick tests by adding this to my Application() constructor:

sharedEditingContext = EOSharedEditingContext.defaultSharedEditingContext();
takeValueForKey(sharedEditingContext, "sharedEditingContext");



Where sharedEditingContext is a protected field of type EOSharedEditingContext.


Then in my .woo for the page with the WODisplayGroup I changed:

editingContext = session.defaultEditingContext;

to

editingContext = "application.sharedEditingContext";

This seems to work fine from the outside (i.e., there are no exceptions being thrown and my page is working correctly in my limited testing but I still feel like the .woo may not be meant for this level of customization.

I would have preferred a method call but...

Thanks for any advice.

Michael
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Cached EO Objects
  • Next by Date: generate printer friendly page
  • Previous by thread: Re: Cached EO Objects
  • Next by thread: generate printer friendly page
  • Index(es):
    • Date
    • Thread