Centering scrollRowToVisible on NSTableView
Centering scrollRowToVisible on NSTableView
- Subject: Centering scrollRowToVisible on NSTableView
- From: Tony P <email@hidden>
- Date: Thu, 1 Apr 2010 13:50:38 +0100
I'm trying to vertically center a NSTableView row (variable height)
using scrollRowToVisible. The default behaviour seems to be displaying
at the next-to-last row within the view. After much research, the only
way I can see to do this is to calculate row heights for subsequent
rows and adjust the call to scrollRowToVisible accordingly. However,
I've got a feeling that there might be something much simpler?
Tony Pollard
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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