Re: How to View the end Row of the NSTableView without scrolling.
Re: How to View the end Row of the NSTableView without scrolling.
- Subject: Re: How to View the end Row of the NSTableView without scrolling.
- From: Manfred Schwind <email@hidden>
- Date: Thu, 10 May 2007 15:24:10 +0200
I am using NSTableView for log messages. When tableview is
updated, the view is at the beginning of the tableview, where
unable to view the latest updated row which is at last of the
table. To view the latest update, using scroll bar can be viewed.
But I want to view the last row all the time that is I want to view
the latest updated row.
You can use NSTableView's "scrollRowToVisible:" to make the last row
visible every time you add a row:
int lastRow = [tableView numberOfRows] - 1;
if (lastRow >= 0)
[tableView scrollRowToVisible:lastRow];
}
Regards,
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.
_______________________________________________
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