Hook up the Evaluate button
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 1 May 2011 14:56:25 +0000 (10:56 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 1 May 2011 16:46:35 +0000 (12:46 -0400)
English.lproj/Eval.xib
Source/EvalController.h
Source/EvalController.m

index 7fe9b807caecfb1178f5683ae9e3a96c40cac7cd..12fe6d24dae39974e3a390062ded256116cb7a22 100644 (file)
                                        </object>
                                        <int key="connectionID">18</int>
                                </object>
+                               <object class="IBConnectionRecord">
+                                       <object class="IBActionConnection" key="connection">
+                                               <string key="label">evaluateScript:</string>
+                                               <reference key="source" ref="1001"/>
+                                               <reference key="destination" ref="259944115"/>
+                                       </object>
+                                       <int key="connectionID">19</int>
+                               </object>
                        </object>
                        <object class="IBMutableOrderedSet" key="objectRecords">
                                <object class="NSArray" key="orderedObjects">
                                </object>
                        </object>
                        <nil key="sourceID"/>
-                       <int key="maxID">18</int>
+                       <int key="maxID">19</int>
                </object>
                <object class="IBClassDescriber" key="IBDocument.Classes">
                        <object class="NSMutableArray" key="referencedPartialClassDescriptions">
                                        <string key="className">EvalController</string>
                                        <string key="superclassName">NSWindowController</string>
                                        <object class="NSMutableDictionary" key="actions">
-                                               <string key="NS.key.0">closeWindow:</string>
-                                               <string key="NS.object.0">id</string>
+                                               <bool key="EncodedWithXMLCoder">YES</bool>
+                                               <object class="NSArray" key="dict.sortedKeys">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>closeWindow:</string>
+                                                       <string>evaluateScript:</string>
+                                               </object>
+                                               <object class="NSMutableArray" key="dict.values">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>id</string>
+                                                       <string>id</string>
+                                               </object>
                                        </object>
                                        <object class="NSMutableDictionary" key="actionInfosByName">
-                                               <string key="NS.key.0">closeWindow:</string>
-                                               <object class="IBActionInfo" key="NS.object.0">
-                                                       <string key="name">closeWindow:</string>
-                                                       <string key="candidateClassName">id</string>
+                                               <bool key="EncodedWithXMLCoder">YES</bool>
+                                               <object class="NSArray" key="dict.sortedKeys">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <string>closeWindow:</string>
+                                                       <string>evaluateScript:</string>
+                                               </object>
+                                               <object class="NSMutableArray" key="dict.values">
+                                                       <bool key="EncodedWithXMLCoder">YES</bool>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">closeWindow:</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
+                                                       <object class="IBActionInfo">
+                                                               <string key="name">evaluateScript:</string>
+                                                               <string key="candidateClassName">id</string>
+                                                       </object>
                                                </object>
                                        </object>
                                        <object class="NSMutableDictionary" key="outlets">
index 3e7ecbc5e8a9d905aa7182830222ca1834bb218f..542aa94d4e0ee53b98b7ff8457a3fd3abeb0b291 100644 (file)
@@ -34,6 +34,7 @@
 
 - (void)runModalForWindow:(NSWindow*)parent;
 
+- (IBAction)evaluateScript:(id)sender;
 - (IBAction)closeWindow:(id)sender;
 
 @end
index 2a2a884dde43b6bf100c63203672b6bc70c30317..ced155975193fec3f8a33c148ced3e7a717aff8c 100644 (file)
   [self autorelease];
 }
 
+- (IBAction)evaluateScript:(id)sender
+{
+  NSLog(@"will evluate: %@", [self.dataField stringValue]);
+}
+
 - (IBAction)closeWindow:(id)sender
 {
   [self close];