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 protected]> Date : Wed, 1 Jun 2011 08:39:27 -0400 À : David Avendasora <[email protected]> Cc : Frédéric JECKER <[email protected]>, WebObjects-Dev Mailing List List <[email protected]> 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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
