Re: What's up with NSTableView?
Re: What's up with NSTableView?
- Subject: Re: What's up with NSTableView?
- From: Brian Webster <email@hidden>
- Date: Tue, 22 Jan 2002 12:08:25 -0600
On Tuesday, January 22, 2002, at 06:21 AM, cocoa-dev-
email@hidden wrote:
So when my NSTableView first loads, the scrollbars are enabled
allowing me to scroll the content view horizontally and
vertically, enough though there are no cells in the table. Is
this a bug, or do I have to initialize the view somehow? I have
tried calling reloadData in awakeFromNib, that doesn't work. I
am returning 0 for numberOfRowsInTableView:
The horizontal scrollbars won't be controlled by the number of
rows in the table, but rather the width of the table columns.
You might try fooling with the size of your columns in IB, or
call sizeLastColumnToFit in awakeFromNib.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster