• 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
NSTableView: no display until header clicked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: no display until header clicked


  • Subject: NSTableView: no display until header clicked
  • From: David Hirsch <email@hidden>
  • Date: Mon, 05 Oct 2009 09:32:28 -0700

My window has two NSTableViews. Each has two columns, each of which is bound to a field in Phases, an NSArrayController.

When my window is displayed, I calculate my model, and the NSTableViews show the headers, but blank data cells. However, when I click the header of one table, all four columns get populated with data. As far as I can tell (I've set breakpoints), this happens without calling any of my code. Note that this only works if I click a text-based column. If I click the column with image cells, I get no response, so presumably the TableView is trying to sort the data on the click, and somehow straightens out the previously mucked-up binding at that time.

I'm posting here without code to see if anybody has experienced this before. It will be a major undertaking to reduce this problem to a post-able amount of code.

I've tried making Phases (the NSArrayController) the data source and delegate in addition to the column bindings, without solving the problem. I've tried adding another NSTableView and binding it to other columns to see if I had done it wrong the first time. That did not help. The fact that the bindings do work after the click seems to suggest that the binding setup is okay.

Thanks in advance,
Dave





_______________________________________________

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: NSTableView: no display until header clicked
      • From: Volker in Lists <email@hidden>
  • Prev by Date: Re: Screen saver for Snow Leopard and previous OS (Was: ScreenSaverView gets instantiated several times)
  • Next by Date: Re: NSTableView: no display until header clicked
  • Previous by thread: Re: How to manage creation of an unknown number of windows?
  • Next by thread: Re: NSTableView: no display until header clicked
  • Index(es):
    • Date
    • Thread