Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
Dear list, In a document based app running under ARC, I've been struggling for an eternity to get to the bottom of an occasional crash which happens when closing a document. I've spent a huge amount of time working on my -tearDown procedure which I call in my NSDocument subclass'

Re: Zombie object being messaged - why?

2013-01-25 Thread Keary Suska
On Jan 25, 2013, at 8:52 AM, Martin Hewitson wrote: In a document based app running under ARC, I've been struggling for an eternity to get to the bottom of an occasional crash which happens when closing a document. I've spent a huge amount of time working on my -tearDown procedure which I

Re: Zombie object being messaged - why?

2013-01-25 Thread Andy Lee
On Jan 25, 2013, at 10:52 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Should I interpret this as a window trying to message the object? Am I somehow over-reasling? Under ARC, I can't, right? Assuming there isn't a bug in ARC, you could still be over-releasing if: * You're

Re: Zombie object being messaged - why?

2013-01-25 Thread Greg Parker
On Jan 25, 2013, at 7:52 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: 2117 0x10a395410 MHControlsTabBarController Zombie -1 03:31.405.789 0 AppKit -[NSWindow sendEvent:] Should I interpret this as a window trying to message the object? Am I somehow

Re: Zombie object being messaged - why?

2013-01-25 Thread Quincey Morris
On Jan 25, 2013, at 10:33 , Quincey Morris quinceymor...@rivergatesoftware.com wrote: Since the retain count goes from 1 to 0 here Aargh, did it again! The count is actually going from 2 to 1 in your history. I meant of course, discounting the balanced retain/release pairs, it's the last

Re: Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
Hi Keary, I appreciate your response. I'll try to answer below. In a document based app running under ARC, I've been struggling for an eternity to get to the bottom of an occasional crash which happens when closing a document. I've spent a huge amount of time working on my -tearDown

Re: Zombie object being messaged - why?

2013-01-25 Thread Quincey Morris
(resent) On Jan 25, 2013, at 07:52 , Martin Hewitson martin.hewit...@aei.mpg.de wrote: 2111 0x10a395410 MHControlsTabBarController Retain 2 03:29.823.791 0 TeXnicle-[TeXProjectDocument controlsTabBarController] 2112 0x10a395410

Re: Zombie object being messaged - why?

2013-01-25 Thread Keary Suska
On Jan 25, 2013, at 11:51 AM, Martin Hewitson wrote: First things first--you are getting a crash, which means that the debugger should put you exactly in the place where you can inspect the arguments being sent via this method which will likely tell you what object is sending it and

Re: Zombie object being messaged - why?

2013-01-25 Thread Martin Hewitson
This was held for moderation for being too large (for some reason), so I've trimmed it and resent it. Should I interpret this as a window trying to message the object? Am I somehow over-reasling? Under ARC, I can't, right? If it's not coming from a window, how can I figure out which

Re: Zombie object being messaged - why?

2013-01-25 Thread Quincey Morris
On Jan 25, 2013, at 22:39 , Martin Hewitson martin.hewit...@aei.mpg.de wrote: This was held for moderation for being too large (for some reason), so I've trimmed it and resent it. Yes, this happens sometimes when you paste something with formatting into an email as unformatted text. I don't