• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView crash with Delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableView crash with Delegate


  • Subject: Re: TableView crash with Delegate
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 13 Jun 2016 15:44:14 +0100

On 12 Jun 2016, at 10:10, Gerriet M. Denkmann <email@hidden> 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@hidden)

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:

This email sent to email@hidden


References: 
 >TableView crash with Delegate (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: CGWindowList Documentation bug?
  • Next by Date: Re: Tick marks on scroll bars
  • Previous by thread: TableView crash with Delegate
  • Next by thread: Re: TableView crash with Delegate
  • Index(es):
    • Date
    • Thread