Hi Cocoa developers,

I created a simple garbage collected Core Data application using the Xcode template. I did not change much except that I added an empty window controller for my window,
which is the file's owner of my .xib.

I added logs in the init and finalize methods to make sure that each object created was eventually finalized. However, I realized that even if the document is always finalized when I close the window, its window controller is not. Let's say I open a new document and close it right away and repeat the operation a few dozen times, I end up with all documents collected, but a few window controller still to be collected. Even if I force the collector, they are not collected.

Even stranger, if I delete my only entity from my .xcdatamodel (which does nothing), then everything gets collected as it should. How can a entity prevent an object from being collected?

Am I missing something obvious here? Or should I consider it a garbage collection bug?

I made a copy of my project available if someone would like to take a look at it. It is quite simple.

http://www.rogue-research.com/vtk/GC_Test.zip

Thanks a lot!

Mathieu

_______________
Mathieu Coursolle
Rogue Research Inc.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to