• 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 blanks out on double-click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView blanks out on double-click


  • Subject: NSTableView blanks out on double-click
  • From: "Steven D.Arnold" <email@hidden>
  • Date: Fri, 4 Jun 2004 16:35:23 -0400

I'm having a strange problem with an NSTableView. I have a delegate object that implements tableView:objectValueForTableColumn:row: and numberOfRowsInTableView:. I have a function that deletes a record from the tableview; this essentially removes an item from a list that acts as the data source for the rows, and then it calls reloadData for the tableview.

This seems to work fine when the vertical scrollbar of the tableview is not present, i.e. when there are fewer items than there are rows visible in the tableview. When there are more items than that, i.e. when the scroller is visible, deleting items like this does not refresh the tableview -- in other words, the deleted item is still visible. I know from logging output that the actual data source no longer contains the deleted row. Then, if I try to double-click in a cell to edit the value, the entire tableview blanks out -- no row content, no row divider lines, nothing.

When I set the tableview to not automatically hide scrollers, this problem disappears! So if doing XYZ hurts, I'm willing to not do XYZ -- in this case I don't need the auto-hiding scroller -- but I am still curious. Is this a known problem? Is there an easy fix? Any ideas?

Thanks,
steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Learn by doing...
  • Next by Date: Re: NSImageView's images are invisible until clicked
  • Previous by thread: Learn by doing...
  • Next by thread: Re: Why is "." a decimal number? (NSScanner question)
  • Index(es):
    • Date
    • Thread