Centering scrollRowToVisible on NSTableView
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Tony Pollard _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Tony P