Revision: 2639
http://skim-app.svn.sourceforge.net/skim-app/?rev=2639&view=rev
Author: hofman
Date: 2007-08-12 07:44:55 -0700 (Sun, 12 Aug 2007)
Log Message:
-----------
Open download window after adding a download from the clipboard. Select new
downloads.
Modified Paths:
--------------
trunk/SKDocumentController.m
trunk/SKDownloadController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2007-08-11 22:52:12 UTC (rev 2638)
+++ trunk/SKDocumentController.m 2007-08-12 14:44:55 UTC (rev 2639)
@@ -178,6 +178,7 @@
document = [self openDocumentWithContentsOfURL:theURL display:YES
error:outError];
} else if (theURL) {
[[SKDownloadController sharedDownloadController]
addDownloadForURL:theURL];
+ [[SKDownloadController sharedDownloadController] showWindow:self];
if (outError)
*outError = nil;
} else if (outError) {
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2007-08-11 22:52:12 UTC (rev 2638)
+++ trunk/SKDownloadController.m 2007-08-12 14:44:55 UTC (rev 2639)
@@ -93,8 +93,10 @@
- (void)addDownloadForURL:(NSURL *)aURL {
if (aURL) {
- [downloads addObject:[[[SKDownload alloc] initWithURL:aURL
delegate:self] autorelease]];
+ SKDownload *download = [[[SKDownload alloc] initWithURL:aURL
delegate:self] autorelease];
+ [downloads addObject:download];
[self reloadTableView];
+ [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableView
numberOfRows] - 1] byExtendingSelection:NO];
}
}
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