On 12 Jun 2016, at 10:10, Gerriet M. Denkmann <[email protected]> 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 below). > > How to debug this? > Tried a symbolic breakpoint in -[__NSArrayM objectAtIndex:] - but it crashes > before reaching breakpoint.
Set it to break on exceptions (or put a breakpoint on objc_exception_throw), then go back up the call stack? Alternatively, if that isn’t helpful (and it might well not be), I’d start looking to see whether I was doing anything I shouldn’t; for instance, changing the number of items in the table view from a data source or delegate method where doing that isn't safe. Not sure how much of that is documented; some of it might be assumed to be “obvious”. Pretty sure I’ve crashed NSTableView before that way, and with an index beyond bounds error at that. Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
