Missing vertical scrollbar on TableView
Missing vertical scrollbar on TableView
- Subject: Missing vertical scrollbar on TableView
- From: Denis Stanton <email@hidden>
- Date: Mon, 10 Mar 2003 10:53:59 +1300
I have observed a persistent problem with the use of NSTableView and I
wonder if the solution is already known.
When my application first displays a table view where the source has
more items than can be displayed at once there is no vertical scroll
bar. In order to see the items that are below the bottom of the list I
need to move the corner of the window slightly. This triggers a redraw
and the scroll bar appears. It's easy enough to do this, but it's
hardly professional for my program to expect users to figure this out.
(I think I've seen this same behavior in Internet Explorer.)
Presumably the window frame is being drawn before it knows that the
scroll bar will be required and I need to add something to my code to
perform a redraw after the contents of the table view have been
determined. Can anybody tell me what I should be doing to ensure that
the screen is redrawn at the right point, when the need for scroll bars
is known?
There is another situation when a screen redraw is required. If the
array of items in my table view is selected by some kind of filter on
the data and I modify the data by editing one column so that an item is
no longer in the array the rejected item does not immediately disappear
from the screen. The row remains visible, but attempts to edit
individual fields in the row result in an empty cell because the method
tableView:objectValueForTableColumn:row: can't find the row in the
table. Again I have to drag the corner of the window slightly to get a
redrawn table with the deleted item removed.
Denis Stanton
------------------------------------------------------------------------
----------------
Denis Stanton
email@hidden
+64 9 533 0391 Auckland, New Zealand
_______________________________________________
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.