How do I remove CoreData objects from memory?
1 answer
You can say that managedObjectContext does or does not save objects (in addition to the ones you save):
[managedObjectContext setRetainsRegisteredObjects:YES];
See http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/index.html?http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdRelationships.html for a discussion of that what does it do.
Note that you also have to be careful not to save or lose objects yourself, or this will have no effect.
-Wil
+6
source to share