NSTableView clicked row
NSTableView clicked row
- Subject: NSTableView clicked row
- From: Bert Torfs <email@hidden>
- Date: Thu, 17 May 2007 21:46:36 +0200
Hi all
I have 2 - as far as I can see - identical NSTableViews (instances of
my own custom class). They both show 4 rows. I add 5 rows to both so
the vertical scroll bar appears. When I click the fifth row in the
first table (have to scroll up to make the 5th row visible), the
clicked point (converted with [self convertPoint:thePoint fromView:
[[self window] contentView]];) has a Y coordinate of 85 - which is
right. When clicking the 5th row in the second table, the clicked
point has converted coordinates of 65 (more or less) - which is a
point from the 4th row. I would expect a value between 80 and 100
here. It is as if the NSTableView does not know that it is scrolled up.
Any idea why it works in one table and not in the other. (I looked
for differences in InterfaceBuilder, but could not find any.)
Thanks a lot,
Bert
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden