Re: How to debug this error on closing a document?

2010-03-11 Thread Jerry Krinock
On 2010 Mar 11, at 02:27, Gideon King wrote: > or whether I would have to subclass NSConcreteNotification and override > dealloc and then use pose as, so I could print out the notification name > etc, to get the info That would work, but Method Replacement [1] was added in Objective-C 2.0 as

Re: How to debug this error on closing a document?

2010-03-11 Thread Gideon King
Well I spent some of the day going through the application with the analyzer - first time I have used it, and I'm pretty impressed - I like the way it draws the lines showing the relevant lines of code...but although it did pick up some leaks etc, it made no difference to my specific problem. W

Re: How to debug this error on closing a document?

2010-03-10 Thread Kyle Sluder
On Wed, Mar 10, 2010 at 4:45 PM, Gideon King wrote: > Seeing as none of this appears to have anything to do with my code, I am > assuming that some notification created somewhere in my application is > somehow the cause, but I'm not sure how to track this down. Run the analyzer first, then if t

How to debug this error on closing a document?

2010-03-10 Thread Gideon King
I have a core data based application, and use the NSPersistentDocument's -managedObjectContext to get my managed object context. As far as I can see, I do not retain or release it anywhere in my code, but apparently it is getting over released when I close my document. My test case is to start m