Re: NSSplitView crash upon restore from 10.8 Versions Browser
Re: NSSplitView crash upon restore from 10.8 Versions Browser
- Subject: Re: NSSplitView crash upon restore from 10.8 Versions Browser
- From: Jerry Krinock <email@hidden>
- Date: Thu, 13 Sep 2012 07:47:55 -0700
I was able to reproduce and fix this problem that went away a few weeks ago. The mystery factor was that the crash only occurs if user clicks on the old (right-screen side) version while in the Versions Browser, which causes its window to resize, before restoring.
On 2012 Aug 20, at 14:14, Kevin Perry <email@hidden> wrote:
> Looks like the crash is happening while attempting to invoke -respondsToSelector:.
Very good, Kevin. Apparently, objc_msgSend_vtable5 implies -respondsToSelector:
> Odds are that this is a message being sent to [self delegate], which looks like a deallocated object.
Indeed, that is what was happening. I was sending setDelegate:nil during -windowWillClose:, but the message was not being delivered because when I replaced RBSplitView with NSSplitView to make the project buildable in Xcode 4, I neglected to reconnect the outlet from the window controller to the new NSSplitView. It's connected now, and no more crashes.
_______________________________________________
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