Revision: 2649
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2649&view=rev
Author:   hofman
Date:     2007-08-13 14:15:25 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
Implement paste for download window

Modified Paths:
--------------
    trunk/SKDownloadController.m

Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m        2007-08-13 21:11:36 UTC (rev 2648)
+++ trunk/SKDownloadController.m        2007-08-13 21:15:25 UTC (rev 2649)
@@ -140,6 +140,16 @@
     }
 }
 
+- (IBAction)paste:(id)sender {
+    NSPasteboard *pboard = [NSPasteboard generalPasteboard];
+    NSURL *theURL = [NSURL URLFromPasteboardAnyType:pboard];
+    
+    if ([theURL isFileURL])
+        [[NSDocumentController sharedDocumentController] 
openDocumentWithContentsOfURL:theURL display:YES error:NULL];
+    else if (theURL)
+        [self addDownloadForURL:theURL];
+}
+
 #pragma mark SKDownloadDelegate
 
 - (void)downloadDidStart:(SKDownload *)download {


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

Reply via email to