• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't get NSManagedObject subclass to release objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can't get NSManagedObject subclass to release objects (From: Rick Mann <email@hidden>)
 >Re: Can't get NSManagedObject subclass to release objects (From: Jerry Krinock <email@hidden>)
 >Re: Can't get NSManagedObject subclass to release objects (From: Dave Fernandes <email@hidden>)
 >Re: Can't get NSManagedObject subclass to release objects (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Dispatch IO
  • Next by Date: reverse scanner
  • Previous by thread: Re: Can't get NSManagedObject subclass to release objects
  • Next by thread: NSToolbar settings not saved
  • Index(es):
    • Date
    • Thread