Re: NSTableView is messaging zombie delegate

2016-05-10 Thread corbin dunn
> On May 6, 2016, at 1:03 PM, Matthew LeRoy wrote: > > Hello, > > I'm having an issue where an NSTableView appears to be messaging its delegate > after the delegate has been deallocated, causing an EXC_BAD_ACCESS crash. It > doesn't always happen, but it happens regularly. My understanding is

RE: NSTableView is messaging zombie delegate

2016-05-09 Thread Matthew LeRoy
On May 8, 2016, at 13:19, Quincey Morris wrote: If you look at your backtrace again, you’ll see that it crashed doing something with rows. It’s as likely trying to message your data source as your delegate. You should nil that as well. Note that it’s not necessarily that any p

Re: NSTableView is messaging zombie delegate

2016-05-09 Thread Sean McBride
On Fri, 6 May 2016 13:28:10 -0700, Jens Alfke said: >> On May 6, 2016, at 1:03 PM, Matthew LeRoy wrote: >> >> My understanding is that NSTableView's delegate is a zeroing weak reference > >Are you sure? Historically it’s been unsafe_unretained — in the old days >before weak references or ARC, th

Re: NSTableView is messaging zombie delegate

2016-05-08 Thread Uli Kusterer
On 08 May 2016, at 21:19, Matthew LeRoy wrote: > Unfortunately, setting the table view’s delegate to nil during tear-down > (either in -windowWillClose: or in NSViewController’s -dealloc) doesn’t seem > to fix the issue. I still get random but regularly reproducible crashes, with > the same sta

Re: NSTableView is messaging zombie delegate

2016-05-08 Thread Quincey Morris
On May 8, 2016, at 12:19 , Matthew LeRoy wrote: > > Unfortunately, setting the table view’s delegate to nil during tear-down > (either in -windowWillClose: or in NSViewController’s -dealloc) doesn’t seem > to fix the issue. I still get random but regularly reproducible crashes, with > the same

Re: NSTableView is messaging zombie delegate

2016-05-08 Thread Jens Alfke
> On May 8, 2016, at 12:19 PM, Matthew LeRoy wrote: > > Unfortunately, setting the table view’s delegate to nil during tear-down > (either in -windowWillClose: or in NSViewController’s -dealloc) doesn’t seem > to fix the issue. I still get random but regularly reproducible crashes, with > the

Re: NSTableView is messaging zombie delegate

2016-05-08 Thread Matthew LeRoy
>On May 6, 2016, at 1:03 PM, Matthew LeRoy wrote: > > My understanding is that NSTableView's delegate is a zeroing weak > reference > > >Are you sure? Historically it’s been unsafe_unretained — in the old days >before weak references or ARC, the view never retained nor released the >deleg

Re: NSTableView is messaging zombie delegate

2016-05-06 Thread Jens Alfke
> On May 6, 2016, at 1:03 PM, Matthew LeRoy wrote: > > My understanding is that NSTableView's delegate is a zeroing weak reference Are you sure? Historically it’s been unsafe_unretained — in the old days before weak references or ARC, the view never retained nor released the delegate. The typ

Re: NSTableView is messaging zombie delegate

2016-05-06 Thread Jonathan Mitchell
> On 6 May 2016, at 21:03, Matthew LeRoy wrote: > > Hello, > > I'm having an issue where an NSTableView appears to be messaging its delegate > after the delegate has been deallocated, causing an EXC_BAD_ACCESS crash. It > doesn't always happen, but it happens regularly. My understanding is th

NSTableView is messaging zombie delegate

2016-05-06 Thread Matthew LeRoy
Hello, I'm having an issue where an NSTableView appears to be messaging its delegate after the delegate has been deallocated, causing an EXC_BAD_ACCESS crash. It doesn't always happen, but it happens regularly. My understanding is that NSTableView's delegate is a zeroing weak reference, and so