macosx: fix reveal in finder main menu item
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Fri, 2 Jan 2015 20:57:38 +0000 (21:57 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Fri, 2 Jan 2015 20:57:38 +0000 (21:57 +0100)
extras/package/macosx/Resources/English.lproj/MainMenu.xib
modules/gui/macosx/MainMenu.h
modules/gui/macosx/MainMenu.m
modules/gui/macosx/playlist.h
modules/gui/macosx/playlist.m

index 27ce9cd..1c880c9 100644 (file)
     </object>
     <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
       <bool key="EncodedWithXMLCoder">YES</bool>
+      <integer value="4596"/>
       <integer value="2730"/>
-      <integer value="5547"/>
       <integer value="2461"/>
-      <integer value="4596"/>
-      <integer value="57"/>
+      <integer value="5547"/>
+      <integer value="81"/>
     </object>
     <object class="NSArray" key="IBDocument.PluginDependencies">
       <bool key="EncodedWithXMLCoder">YES</bool>
           </object>
           <int key="connectionID">5615</int>
         </object>
+        <object class="IBConnectionRecord">
+          <object class="IBOutletConnection" key="connection">
+            <string key="label">o_mi_revealInFinder</string>
+            <reference key="source" ref="651263286"/>
+            <reference key="destination" ref="252497091"/>
+          </object>
+          <int key="connectionID">5616</int>
+        </object>
+        <object class="IBConnectionRecord">
+          <object class="IBActionConnection" key="connection">
+            <string key="label">revealItemInFinder:</string>
+            <reference key="source" ref="651263286"/>
+            <reference key="destination" ref="252497091"/>
+          </object>
+          <int key="connectionID">5617</int>
+        </object>
       </object>
       <object class="IBMutableOrderedSet" key="objectRecords">
         <object class="NSArray" key="orderedObjects">
           <boolean value="YES"/>
           <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
           <boolean value="YES"/>
-          <string>{{431, 473}, {297, 263}}</string>
+          <string>{{302, 473}, {297, 263}}</string>
           <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
           <boolean value="YES"/>
           <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
         </object>
       </object>
       <nil key="sourceID"/>
-      <int key="maxID">5615</int>
+      <int key="maxID">5617</int>
     </object>
     <object class="IBClassDescriber" key="IBDocument.Classes">
       <object class="NSMutableArray" key="referencedPartialClassDescriptions">
               <string>openWebsite:</string>
               <string>quitAfterPlayback:</string>
               <string>resizeVideoWindow:</string>
+              <string>revealItemInFinder:</string>
               <string>savePlaylist:</string>
               <string>setPlaybackRate:</string>
               <string>showAudioEffects:</string>
               <string>id</string>
               <string>id</string>
               <string>id</string>
+              <string>id</string>
             </object>
           </object>
           <object class="NSMutableDictionary" key="actionInfosByName">
               <string>openWebsite:</string>
               <string>quitAfterPlayback:</string>
               <string>resizeVideoWindow:</string>
+              <string>revealItemInFinder:</string>
               <string>savePlaylist:</string>
               <string>setPlaybackRate:</string>
               <string>showAudioEffects:</string>
                 <string key="name">resizeVideoWindow:</string>
                 <string key="candidateClassName">id</string>
               </object>
+              <object class="IBActionInfo">
+                <string key="name">revealItemInFinder:</string>
+                <string key="candidateClassName">id</string>
+              </object>
               <object class="IBActionInfo">
                 <string key="name">savePlaylist:</string>
                 <string key="candidateClassName">id</string>
               <string>o_mi_readme</string>
               <string>o_mi_record</string>
               <string>o_mi_repeat</string>
+              <string>o_mi_revealInFinder</string>
               <string>o_mi_save_playlist</string>
               <string>o_mi_screen</string>
               <string>o_mi_select_all</string>
               <string>NSMenuItem</string>
               <string>NSMenuItem</string>
               <string>NSMenuItem</string>
+              <string>NSMenuItem</string>
               <string>id</string>
               <string>id</string>
               <string>id</string>
               <string>o_mi_readme</string>
               <string>o_mi_record</string>
               <string>o_mi_repeat</string>
+              <string>o_mi_revealInFinder</string>
               <string>o_mi_save_playlist</string>
               <string>o_mi_screen</string>
               <string>o_mi_select_all</string>
                 <string key="name">o_mi_repeat</string>
                 <string key="candidateClassName">NSMenuItem</string>
               </object>
+              <object class="IBToOneOutletInfo">
+                <string key="name">o_mi_revealInFinder</string>
+                <string key="candidateClassName">NSMenuItem</string>
+              </object>
               <object class="IBToOneOutletInfo">
                 <string key="name">o_mi_save_playlist</string>
                 <string key="candidateClassName">NSMenuItem</string>
         </object>
         <object class="IBPartialClassDescription">
           <string key="className">VLCPlaylist</string>
-          <string key="superclassName">VLCPlaylistCommon</string>
+          <string key="superclassName">NSObject</string>
           <object class="NSMutableDictionary" key="actions">
             <bool key="EncodedWithXMLCoder">YES</bool>
             <object class="NSArray" key="dict.sortedKeys">
               <string>o_mi_sort_author</string>
               <string>o_mi_sort_name</string>
               <string>o_mm_mi_revealInFinder</string>
+              <string>o_outline_view</string>
               <string>o_playlist_header</string>
               <string>o_playlist_view</string>
               <string>o_playlist_wizard</string>
               <string>id</string>
               <string>id</string>
               <string>id</string>
+              <string>VLCPlaylistView</string>
               <string>id</string>
               <string>id</string>
               <string>id</string>
               <string>o_mi_sort_author</string>
               <string>o_mi_sort_name</string>
               <string>o_mm_mi_revealInFinder</string>
+              <string>o_outline_view</string>
               <string>o_playlist_header</string>
               <string>o_playlist_view</string>
               <string>o_playlist_wizard</string>
                 <string key="name">o_mm_mi_revealInFinder</string>
                 <string key="candidateClassName">id</string>
               </object>
+              <object class="IBToOneOutletInfo">
+                <string key="name">o_outline_view</string>
+                <string key="candidateClassName">VLCPlaylistView</string>
+              </object>
               <object class="IBToOneOutletInfo">
                 <string key="name">o_playlist_header</string>
                 <string key="candidateClassName">id</string>
             <string key="minorKey">../../../modules/gui/macosx/playlist.h</string>
           </object>
         </object>
-        <object class="IBPartialClassDescription">
-          <string key="className">VLCPlaylistCommon</string>
-          <string key="superclassName">NSObject</string>
-          <object class="NSMutableDictionary" key="outlets">
-            <string key="NS.key.0">o_outline_view</string>
-            <string key="NS.object.0">VLCPlaylistView</string>
-          </object>
-          <object class="NSMutableDictionary" key="toOneOutletInfosByName">
-            <string key="NS.key.0">o_outline_view</string>
-            <object class="IBToOneOutletInfo" key="NS.object.0">
-              <string key="name">o_outline_view</string>
-              <string key="candidateClassName">VLCPlaylistView</string>
-            </object>
-          </object>
-          <reference key="sourceIdentifier" ref="669160037"/>
-        </object>
         <object class="IBPartialClassDescription">
           <string key="className">VLCPlaylistView</string>
           <string key="superclassName">NSOutlineView</string>
index f53f3f5..91c5370 100644 (file)
@@ -74,6 +74,7 @@
     IBOutlet NSMenuItem * o_mi_open_wizard;
     IBOutlet NSMenuItem * o_mi_convertandsave;
     IBOutlet NSMenuItem * o_mi_save_playlist;
+    IBOutlet NSMenuItem * o_mi_revealInFinder;
 
     IBOutlet NSMenu * o_mu_edit;
     IBOutlet NSMenuItem * o_mi_cut;
 - (IBAction)intfOpenNet:(id)sender;
 - (IBAction)intfOpenCapture:(id)sender;
 - (IBAction)savePlaylist:(id)sender;
+- (IBAction)revealItemInFinder:(id)sender;
 
 - (IBAction)toggleEffectsButton:(id)sender;
 - (IBAction)toggleJumpButtons:(id)sender;
index ffe784e..3c678e3 100644 (file)
@@ -378,6 +378,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
     [o_mi_open_wizard setTitle: _NS("Streaming/Exporting Wizard...")];
     [o_mi_convertandsave setTitle: _NS("Convert / Stream...")];
     [o_mi_save_playlist setTitle: _NS("Save Playlist...")];
+    [o_mi_revealInFinder setTitle: _NS("Reveal in Finder")];
 
     [o_mu_edit setTitle: _NS("Edit")];
     [o_mi_cut setTitle: _NS("Cut")];
@@ -1109,6 +1110,11 @@ static VLCMainMenu *_o_sharedInstance = nil;
     [[[VLCMain sharedInstance] playlist] savePlaylist:sender];
 }
 
+- (IBAction)revealItemInFinder:(id)sender
+{
+    [[[VLCMain sharedInstance] playlist] revealItemInFinder:sender];
+}
+
 - (IBAction)showConvertAndSave:(id)sender
 {
     if (o_convertandsave == nil)
index f0d002f..29d1a26 100644 (file)
@@ -63,7 +63,6 @@
     IBOutlet id o_mi_info;
     IBOutlet id o_mi_preparse;
     IBOutlet id o_mi_revealInFinder;
-    IBOutlet id o_mm_mi_revealInFinder;
     IBOutlet id o_mi_dl_cover_art;
     IBOutlet id o_mi_selectall;
     IBOutlet id o_mi_sort_name;
index d6991b3..46faf94 100644 (file)
     [o_mi_dl_cover_art setTitle: _NS("Download Cover Art")];
     [o_mi_preparse setTitle: _NS("Fetch Meta Data")];
     [o_mi_revealInFinder setTitle: _NS("Reveal in Finder")];
-    [o_mm_mi_revealInFinder setTitle: _NS("Reveal in Finder")];
-    [[o_mm_mi_revealInFinder menu] setAutoenablesItems: NO];
     [o_mi_sort_name setTitle: _NS("Sort Node by Name")];
     [o_mi_sort_author setTitle: _NS("Sort Node by Author")];