Narrowing in on NSTableView problem..
Narrowing in on NSTableView problem..
- Subject: Narrowing in on NSTableView problem..
- From: Jeff LaMarche <email@hidden>
- Date: Thu, 18 Oct 2001 22:19:10 -0700
Okay, hoping maybe what I've discovered in the last few days of working
with this will allow someone out there to tell me what I'm doing wrong.
Here's the scenario -
I have an NSTableView. The row size is set to 75 to show thumbnail
pictures along with some other items. I provide an NSImageCell to the
column with the thumbnail in the AwakeFromNib method (although I have
also tried it in WindowDidLoad and the results were the same), but the
problem exists even if I comment out this code.
The problem is the topmost row in the view can't be selected with the
mouse. Sometimes I can catch the bottom pixel or two of the row and it
will work, but usually I can't select it at all. If, however, I turn of
the column headers, it works properly.
What it looks to me like is happening is that header row remains at the
default size, but it THINKS that the header row takes up the same amount
of space as the other rows, so thinks I'm clicking in the header when
I'm actually clicking on the first row. My next step is going to be to
try to confirm this by turning on column reordering so that it tries to
pick up clicks on the header row.
Has anyone seen anything like this? Does it sound like a bug, or am I
not doing something I need to, like explicitly setting the height of the
header column?
Thanks for any thoughts you may have...