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: Rick Mann <email@hidden>
- Date: Fri, 09 Aug 2013 16:50:58 -0700
Thanks. There were two great bits of information in there: the MOC references objects weakly, and objects reference related objects strongly (which is broken by the -[refreshObject:merge: false] call).
On Aug 9, 2013, at 07:58 , Jerry Krinock <email@hidden> wrote:
>
> On 2013 Aug 09, at 06:53, Dave Fernandes <email@hidden> wrote:
>
>> However, you CAN force it to turn managed objects into faults. Then in your override of -[NSManagedObject didTurnIntoFault], you can release the transient object.
>
> Yes, it looks like that and -refreshObject:mergeChanges: are both part of the answer, but it's tricky. I think Rick needs to read and understand all of this…
>
> http://developer.apple.com/library/mac/documentation/cocoa/conceptual/coredata/Articles/cdMemory.html
>
>
> _______________________________________________
>
> 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
--
Rick
_______________________________________________
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