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 <martin.hewit...@aei.mpg.de> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to