]> git.sesse.net Git - vlc/commitdiff
macosx: add comment for application:openFiles: usage
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Tue, 30 Sep 2014 15:16:13 +0000 (17:16 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Tue, 30 Sep 2014 15:16:13 +0000 (17:16 +0200)
modules/gui/macosx/intf.m

index 51d438d528f9739067852c947e0e558eafc60626..12c1496ed3e1fa700573c80a0b8ad03327cab70a 100644 (file)
@@ -996,6 +996,10 @@ static bool f_appExit = false;
 
 - (void)application:(NSApplication *)o_app openFiles:(NSArray *)o_names
 {
+    // Only add items here which are getting dropped to to the application icon
+    // or are given at startup. If a file is passed via command line, libvlccore
+    // will add the item, but cocoa also calls this function. In this case, the
+    // invocation is ignored here.
     if (launched == NO) {
         if (items_at_launch) {
             int items = [o_names count];