Re: Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
On Tue, 20 Sep 2016 16:41:07 -0700, Greg Parker said: >Those crashes are expected. > >NSTableView's delegate is zeroing-weak when both of the following are true: >* Your app was built with the 10.11 SDK or newer. >* Your app is running on 10.12 or newer. > >The delegate is unsafe-unretained when

Re: Success with NSTableView weak delegates?

2016-09-20 Thread Greg Parker
> On Sep 20, 2016, at 2:47 PM, Sean McBride wrote: > > On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: > >>> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: >>> >>> Hi all, >>> >>> WWDC 2016 Session 203 "What's New in Cocoa" at

Re: Success with NSTableView weak delegates?

2016-09-20 Thread David Duncan
> On Sep 20, 2016, at 2:47 PM, Sean McBride wrote: > > On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: > >>> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: >>> >>> Hi all, >>> >>> WWDC 2016 Session 203 "What's New in Cocoa" at

Re: Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: >> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: >> >> Hi all, >> >> WWDC 2016 Session 203 "What's New in Cocoa" at around 43:37 in the >video, says that if you link against the 10.11 SDK that NSTableView's

Re: Success with NSTableView weak delegates?

2016-09-20 Thread David Duncan
> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: > > Hi all, > > WWDC 2016 Session 203 "What's New in Cocoa" at around 43:37 in the video, > says that if you link against the 10.11 SDK that NSTableView's delegate is > weak. So I went and wrapped my delegate

Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
Hi all, WWDC 2016 Session 203 "What's New in Cocoa" at around 43:37 in the video, says that if you link against the 10.11 SDK that NSTableView's delegate is weak. So I went and wrapped my delegate nil-ing in: #if MAC_OS_X_VERSION_MAX_ALLOWED < 101100 [tableView setDelegate:nil];