Author: ericwa
Date: Sat Feb  8 23:59:26 2014
New Revision: 10250

URL: http://svn.gna.org/viewcvs/etoile?rev=10250&view=rev
Log:
ARC: fix ARC errors in TestCrossPersistentRootReferences, and add a FIXME about 
an error in COLibrary. This one looks kind of serious; generally, the pattern 
of returning a COObject from a factory method which creates a transient 
COObjectGraphContext inside that factory method will not work with ARC, since 
ARC is free to deallocate the COObjectGraphContext at the end of the method 
body (turning the COObject into a zombie immediately). It's a pain but the best 
thing I have found is to make such factory methods return a 
COObjectGraphContext, or have a COObjectGraphContext as an ivar in the factory 
object (probably better). 

Modified:
    trunk/Etoile/Frameworks/CoreObject/Model/COLibrary.m
    
trunk/Etoile/Frameworks/CoreObject/Tests/Core/TestCrossPersistentRootReferences.m


_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs

Reply via email to