]> git.sesse.net Git - vlc/commitdiff
macosx: properly synchronize goto stepper / field values
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 30 Apr 2013 20:01:35 +0000 (22:01 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 30 Apr 2013 20:19:52 +0000 (22:19 +0200)
extras/package/macosx/Resources/English.lproj/MainMenu.xib
modules/gui/macosx/controls.h
modules/gui/macosx/controls.m

index b092e1e75cb0cc603b93cad0571b3bf5b79a6a3b..e1d8458bae73b97b512f1ba6d15175e8e7b34bf5 100644 (file)
     </object>
     <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
       <bool key="EncodedWithXMLCoder">YES</bool>
-      <integer value="21"/>
-      <integer value="5260"/>
-      <integer value="2730"/>
       <integer value="5457"/>
+      <integer value="2730"/>
       <integer value="4850"/>
+      <integer value="5260"/>
+      <integer value="2461"/>
+      <integer value="21"/>
     </object>
     <object class="NSArray" key="IBDocument.PluginDependencies">
       <bool key="EncodedWithXMLCoder">YES</bool>
         <nil key="NSUserInterfaceItemIdentifier"/>
         <string key="NSWindowContentMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string>
         <object class="NSView" key="NSWindowView" id="500944643">
-          <nil key="NSNextResponder"/>
+          <reference key="NSNextResponder"/>
           <int key="NSvFlags">256</int>
           <object class="NSMutableArray" key="NSSubviews">
             <bool key="EncodedWithXMLCoder">YES</bool>
             </object>
           </object>
           <string key="NSFrameSize">{249, 103}</string>
+          <reference key="NSSuperview"/>
         </object>
         <string key="NSScreenRect">{{0, 0}, {1280, 778}}</string>
         <string key="NSMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string>
@@ -5575,22 +5577,6 @@ LCAuLi4</string>
           </object>
           <int key="connectionID">2400</int>
         </object>
-        <object class="IBConnectionRecord">
-          <object class="IBActionConnection" key="connection">
-            <string key="label">takeIntValueFrom:</string>
-            <reference key="source" ref="460273327"/>
-            <reference key="destination" ref="378726756"/>
-          </object>
-          <int key="connectionID">2467</int>
-        </object>
-        <object class="IBConnectionRecord">
-          <object class="IBActionConnection" key="connection">
-            <string key="label">takeIntValueFrom:</string>
-            <reference key="source" ref="378726756"/>
-            <reference key="destination" ref="460273327"/>
-          </object>
-          <int key="connectionID">2468</int>
-        </object>
         <object class="IBConnectionRecord">
           <object class="IBActionConnection" key="connection">
             <string key="label">goToSpecificTime:</string>
@@ -8423,6 +8409,42 @@ LCAuLi4</string>
           </object>
           <int key="connectionID">5590</int>
         </object>
+        <object class="IBConnectionRecord">
+          <object class="IBBindingConnection" key="connection">
+            <string key="label">value: self.jumpTimeValue</string>
+            <reference key="source" ref="378726756"/>
+            <reference key="destination" ref="113811151"/>
+            <object class="NSNibBindingConnector" key="connector">
+              <reference key="NSSource" ref="378726756"/>
+              <reference key="NSDestination" ref="113811151"/>
+              <string key="NSLabel">value: self.jumpTimeValue</string>
+              <string key="NSBinding">value</string>
+              <string key="NSKeyPath">self.jumpTimeValue</string>
+              <int key="NSNibBindingConnectorVersion">2</int>
+            </object>
+          </object>
+          <int key="connectionID">5592</int>
+        </object>
+        <object class="IBConnectionRecord">
+          <object class="IBBindingConnection" key="connection">
+            <string key="label">value: self.jumpTimeValue</string>
+            <reference key="source" ref="460273327"/>
+            <reference key="destination" ref="113811151"/>
+            <object class="NSNibBindingConnector" key="connector">
+              <reference key="NSSource" ref="460273327"/>
+              <reference key="NSDestination" ref="113811151"/>
+              <string key="NSLabel">value: self.jumpTimeValue</string>
+              <string key="NSBinding">value</string>
+              <string key="NSKeyPath">self.jumpTimeValue</string>
+              <object class="NSDictionary" key="NSOptions">
+                <string key="NS.key.0">NSContinuouslyUpdatesValue</string>
+                <boolean value="YES" key="NS.object.0"/>
+              </object>
+              <int key="NSNibBindingConnectorVersion">2</int>
+            </object>
+          </object>
+          <int key="connectionID">5595</int>
+        </object>
       </object>
       <object class="IBMutableOrderedSet" key="objectRecords">
         <object class="NSArray" key="orderedObjects">
@@ -13641,7 +13663,7 @@ LCAuLi4</string>
         </object>
       </object>
       <nil key="sourceID"/>
-      <int key="maxID">5590</int>
+      <int key="maxID">5595</int>
     </object>
     <object class="IBClassDescriber" key="IBDocument.Classes">
       <object class="NSMutableArray" key="referencedPartialClassDescriptions">
index bc66f2d8de43111460184456e56507de0b5b3694..8df133cb46a8386318e56b629dce36f95c34c01d 100644 (file)
@@ -40,6 +40,8 @@
     IBOutlet id o_specificTime_mi;
 }
 
+@property (nonatomic) int jumpTimeValue;
+
 - (IBAction)play:(id)sender;
 - (IBAction)stop:(id)sender;
 
index 449824ebf169d6625fd9bc96b6aaa547a7bcfb85..cab73ba172c5686b7a5bcb31820c12695fa4bd55 100644 (file)
@@ -45,6 +45,8 @@
  *****************************************************************************/
 @implementation VLCControls
 
+@synthesize jumpTimeValue;
+
 - (void)awakeFromNib
 {
     [o_specificTime_mi setTitle: _NS("Jump To Time")];
         if (p_input) {
             /* we can obviously only do that if an input is available */
             vlc_value_t pos, length;
-            var_Get(p_input, "time", &pos);
-            [o_specificTime_enter_fld setIntValue: (pos.i_time / 1000000)];
             var_Get(p_input, "length", &length);
             [o_specificTime_stepper setMaxValue: (length.i_time / 1000000)];
-
+            var_Get(p_input, "time", &pos);
+            [self setJumpTimeValue: (pos.i_time / 1000000)];
             [NSApp beginSheet: o_specificTime_win modalForWindow: \
                 [NSApp mainWindow] modalDelegate: self didEndSelector: nil \
                 contextInfo: nil];