Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]
Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]
- Subject: Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]
- From: Jerry Krinock <email@hidden>
- Date: Sun, 13 Jan 2013 12:32:24 -0800
You've established previously that this is definitely a bug in Mac OS 10.6. Your mission is to find a workaround.
On 2013 Jan 12, at 23:29, Martin Hewitson <email@hidden> wrote:
> 2) Whenever I do [NSTreeController selectedObjects] I seem to end with an additional reference count. Is that expected?
If you mean that there is an additional reference count long after the time when the object is no longer in use, which apparently prevents its deallocation, definitely not. Furthermore, if you are saying that the excess reference count is proportional to the number of times that [NSTreeController selectedObjects] is invoked, maybe the bug in Mac OS 10.6 is a memory leak in -[NSTreeController selectedObjects]. Try doing a Method Replacement on that method. In your replacement implementation, invoke the original method, then invoke -autorelease.
I'm not sure how this would cause a "Core Data could not fulfill a fault" exception, except that allowing dead managed objects to hang around is not a good thing.
_______________________________________________
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