• 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: Preventing an EOEditing context from being disposed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing an EOEditing context from being disposed


  • Subject: Re: Preventing an EOEditing context from being disposed
  • From: Frédéric JECKER <email@hidden>
  • Date: Wed, 01 Jun 2011 16:55:43 +0200
  • Thread-topic: Preventing an EOEditing context from being disposed

I first thought that the EO's where fetched using a dedicated EOEditingContext but digging the code led me to a special case where those could be 
Fetched using a disposable context.
I changed the code so that those EO's are fetched using a dedicated EOEditingContext on which a reference is kept so that it won't get disposed

Thanks for your help !

Fred



De : Mike Schrag <email@hidden>
Date : Wed, 1 Jun 2011 08:39:27 -0400
À : David Avendasora <email@hidden>
Cc : Frédéric JECKER <email@hidden>, WebObjects-Dev Mailing List List <email@hidden>
Objet : Re: Preventing an EOEditing context from being disposed

The EOF documentation () gives this tip to create strong references from the EC to the EO, but I don't think that's going to change things, but I don't think it could hurt either in this situation:

"You can force an EOEditingContext to hold strong references to all of its EOEnterpriseObjects by invoking either setInstancesRetainRegisteredObjects or setRetainsRegisteredObjects on an editing context in which no enterprise objects are registered."
yeah that's the other direction ... it won't matter here.

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

References: 
 >Re: Preventing an EOEditing context from being disposed (From: Mike Schrag <email@hidden>)

  • Prev by Date: Limiting apache virtual host to only one WO application
  • Next by Date: Re: Limiting apache virtual host to only one WO application
  • Previous by thread: Re: Preventing an EOEditing context from being disposed
  • Next by thread: Re: CSS resources using url(...) syntax under Direct Connect
  • Index(es):
    • Date
    • Thread