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-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 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

How to keep things alive in Arc?

2016-05-08 Thread Gerriet M. Denkmann
Thing *aThing = [ Thing new ]; void *thingData = [ aThing data ]; // pointer to a buffer owned by aThing … never use aThing after this point → Arc might release aThing right now … but do lots of things with thingData … no more need for thingData [ aThing release]; How to prevent Arc

Re: How to keep things alive in Arc?

2016-05-08 Thread Roland King
> On 9 May 2016, at 10:11, Gerriet M. Denkmann wrote: > > Thing *aThing = [ Thing new ]; > > void *thingData = [ aThing data ];// pointer to a buffer owned by > aThing > > … never use aThing after this point → Arc might release aThing right now > … but do lots of things with thingDat

Re: How to keep things alive in Arc?

2016-05-08 Thread Britt Durbrow
Off of the top of my head, have a look at: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#precise-lifetime-semantics and http://clang.llvm.org/docs/AutomaticReferenceCounting.html#interior-point

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: How to keep things alive in Arc?

2016-05-08 Thread Gerriet M. Denkmann
> On 9 May 2016, at 09:25, Roland King wrote: > > >> On 9 May 2016, at 10:11, Gerriet M. Denkmann wrote: >> >> Thing *aThing = [ Thing new ]; >> >> void *thingData = [ aThing data ]; // pointer to a buffer owned by >> aThing >> >> … never use aThing after this point → Arc might rele

Re: How to keep things alive in Arc?

2016-05-08 Thread Quincey Morris
On May 8, 2016, at 22:12 , Gerriet M. Denkmann wrote: > > Is there any other documentation (e.g. with a list of all __attribute__s and > their respective meaning)? Documented here for ARC: http://clang.llvm.org/docs/AutomaticReferenceCounting.html If you search for “clang arc” this is

discontiguous bounds ?

2016-05-08 Thread Miller Dale
I wish to provide a facility with a NSTableView wherein the leftmost (specifiable) columns remain statically on the left of the display (subject to vertical scrolling) while the remaining columns scroll normally constrained to the right of the static columns. I've done this successfully (an

Re: discontiguous bounds ?

2016-05-08 Thread Quincey Morris
On May 8, 2016, at 22:32 , Miller Dale wrote: > > I wish to provide a facility with a NSTableView wherein the leftmost > (specifiable) columns remain statically on the left of the display (subject > to vertical scrolling) while the remaining columns scroll normally > constrained to the right o