• 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
Unit test crash inside NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unit test crash inside NSTableView


  • Subject: Unit test crash inside NSTableView
  • From: David Catmull <email@hidden>
  • Date: Wed, 11 Nov 2009 08:39:48 -0800

I'm getting a crash in -[NSTableView _isGroupRow:] in my unit tests if I try to run the main run loop.

In my document's window, I have an NSOutlineView with its delegate and dataSource set to the window controller. In some unit tests, I want to run the main event loop to give some bindings a chance to do their thing, but this causes a crash. Once, instead of crashing, there was a message logged that some random class (whose name I can't remember) doesn't respond to -[outlineView:isGroupItem:], as if the outline view's delegate were set wrong. I added a check for that in the unit test and it was fine. When I run the app normally everything works.

I create the document by calling [[NSDocumentController sharedDocumentsController] openUntitledDocument:YES error:&e]. Is there something else I need to do so that everything get set up correctly?

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________

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

  • Follow-Ups:
    • Re: Unit test crash inside NSTableView
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: EXC_BAD_ACCESS mystery
  • Next by Date: Re: boundingRectWithSize:Option: and height constraint
  • Previous by thread: Re: Weird problem with Core Text
  • Next by thread: Re: Unit test crash inside NSTableView
  • Index(es):
    • Date
    • Thread