Re: Can't get NSManagedObject subclass to release objects
Re: Can't get NSManagedObject subclass to release objects
- Subject: Re: Can't get NSManagedObject subclass to release objects
- From: Jerry Krinock <email@hidden>
- Date: Fri, 09 Aug 2013 05:38:41 -0700
On 2013 Aug 09, at 00:59, Rick Mann <email@hidden> wrote:
> I've tried calling -refreshObject:mergeChanges: on it, but that only seems to reduce the retain count on my object by one.
I presume that Xcode's Product > Profile > Leaks is available in iOS projects. You could run it and make sure you don't have a memory leak.
> What I really want is for Core Data to just let my objects go when I'm no longer strongly referencing them.
I vaguely recall that maybe Core Data is not guaranteed to release managed objects until their owning managed object context is deallocced. You may need to fetch objects you want released in a different, temporary moc.
Anyhow, maybe my wild guesses will inspire someone to jump in and correct me :)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden