Re: TableView crash with Delegate

2016-06-14 Thread Jonathan Mitchell
> On 14 Jun 2016, at 12:26, Gerriet M. Denkmann wrote: > > > But no problem, as long one keeps in mind (as you recommended) that > awakeFromNib “can get called many times”. > You may be experiencing this, as described in docs for view based table views: NSTableView -

Re: TableView crash with Delegate

2016-06-14 Thread Gerriet M. Denkmann
> On 14 Jun 2016, at 16:03, Alastair Houghton > wrote: > > On 14 Jun 2016, at 05:33, Gerriet M. Denkmann wrote: >> >> But I had: >> - (void)awakeFromNib >> { >> self.someUniqueObject = [ [ UniqueObject alloc ] init ]; >> } >> >> The

Re: TableView crash with Delegate

2016-06-14 Thread Alastair Houghton
On 14 Jun 2016, at 05:33, Gerriet M. Denkmann wrote: > > But I had: > - (void)awakeFromNib > { > self.someUniqueObject = [ [ UniqueObject alloc ] init ]; > } > > The problem: awakeFromNib gets called twice: once before > applicationDidFinishLaunching:, once after.

Re: TableView crash with Delegate

2016-06-13 Thread Gerriet M. Denkmann
> On 13 Jun 2016, at 21:43, Alastair Houghton > wrote: > > On 12 Jun 2016, at 10:10, Gerriet M. Denkmann wrote: >> >> OS X 10.11.5, Xcode Version 7.3.1 (7D1014). >> >> App with TableView (View based). Works fine. >> But when I give the

Re: TableView crash with Delegate

2016-06-13 Thread Alastair Houghton
On 12 Jun 2016, at 10:10, Gerriet M. Denkmann wrote: > > OS X 10.11.5, Xcode Version 7.3.1 (7D1014). > > App with TableView (View based). Works fine. > But when I give the TableView a delegate (even without implementing any > NSTableViewDelegate methods) it crashes (see

TableView crash with Delegate

2016-06-12 Thread Gerriet M. Denkmann
OS X 10.11.5, Xcode Version 7.3.1 (7D1014). App with TableView (View based). Works fine. But when I give the TableView a delegate (even without implementing any NSTableViewDelegate methods) it crashes (see below). How to debug this? Tried a symbolic breakpoint in -[__NSArrayM objectAtIndex:]