• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to View the end Row of the NSTableView without scrolling.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to View the end Row of the NSTableView without scrolling. (From: Sachin Kumar Tulla <email@hidden>)

  • Prev by Date: disabling close button in 10.3.9
  • Next by Date: Setting Breakpoint: Exception raised during posting of notification.
  • Previous by thread: How to View the end Row of the NSTableView without scrolling.
  • Next by thread: NSBezeirpath cures
  • Index(es):
    • Date
    • Thread