• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSplitView crash upon restore from 10.8 Versions Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: maintaining alpha value for intersecting lines?
  • Next by Date: Re: maintaining alpha value for intersecting lines?
  • Previous by thread: Re: maintaining alpha value for intersecting lines?
  • Next by thread: Hints for supporting dragging a file onto the dock icon, then onto a row in menu presented at that point?
  • Index(es):
    • Date
    • Thread