Re: NSTableView and Scrollbars
Re: NSTableView and Scrollbars
- Subject: Re: NSTableView and Scrollbars
- From: Denis Stanton <email@hidden>
- Date: Thu, 17 Apr 2003 11:28:43 +1200
David
On Thursday, April 17, 2003, at 09:38 AM, David Blanton wrote:
>
I have an NSTableView with Vertical Scroll Bars (small) selected in IB
>
attributes. Nine (9) items can been seen in the view. The array of
>
items
>
contains 50.
>
>
What do I have to do to get scroll bars to show? Currently there is a
>
placeholder for the scroll bars but not scrollers appear.
I believe you are seeing the same problem (bug?) that I see in using
scroll bars. When my tableView is first displayed there are no scroll
bars, even though the number of lines exceeds the number displayed and
the option to show vertical scroll bars is checked in IB. I have to
drag the resize box slightly, causing a redraw, before the scroll bars
get drawn. It seems that the nib file lays out the tableView before
it checks the table size and realizes that the scroll bars are needed.
Contrary to advice seen on this list calling [myTableView reloadData];
after building the array that will be displayed does not seem to help.
I would be pleased to see any suggestion on how to cause the tableView
to recognize that it needs to show its scroll bars on first display.
I have seen this same problem in Internet Explorer - that's how I found
the drag workaround.
Denis
_______________________________________________
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.