Revision: 2665
http://skim-app.svn.sourceforge.net/skim-app/?rev=2665&view=rev
Author: hofman
Date: 2007-08-15 12:01:43 -0700 (Wed, 15 Aug 2007)
Log Message:
-----------
Scroll new download row to visible after adding.
Modified Paths:
--------------
trunk/SKDownloadController.m
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2007-08-15 18:10:41 UTC (rev 2664)
+++ trunk/SKDownloadController.m 2007-08-15 19:01:43 UTC (rev 2665)
@@ -95,9 +95,11 @@
- (void)addDownloadForURL:(NSURL *)aURL {
if (aURL) {
SKDownload *download = [[[SKDownload alloc] initWithURL:aURL
delegate:self] autorelease];
+ int row = [downloads count];
[downloads addObject:download];
[self reloadTableView];
- [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableView
numberOfRows] - 1] byExtendingSelection:NO];
+ [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row]
byExtendingSelection:NO];
+ [tableView scrollRowToVisible:row];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit