From db9feade3f047cbb5d70b20221c2b0f444efbe9a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 1 May 2011 10:56:25 -0400 Subject: [PATCH] Hook up the Evaluate button --- English.lproj/Eval.xib | 43 ++++++++++++++++++++++++++++++++++------- Source/EvalController.h | 1 + Source/EvalController.m | 5 +++++ 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/English.lproj/Eval.xib b/English.lproj/Eval.xib index 7fe9b80..12fe6d2 100644 --- a/English.lproj/Eval.xib +++ b/English.lproj/Eval.xib @@ -238,6 +238,14 @@ 18 + + + evaluateScript: + + + + 19 + @@ -462,7 +470,7 @@ - 18 + 19 @@ -471,14 +479,35 @@ EvalController NSWindowController - closeWindow: - id + YES + + YES + closeWindow: + evaluateScript: + + + YES + id + id + - closeWindow: - - closeWindow: - id + YES + + YES + closeWindow: + evaluateScript: + + + YES + + closeWindow: + id + + + evaluateScript: + id + diff --git a/Source/EvalController.h b/Source/EvalController.h index 3e7ecbc..542aa94 100644 --- a/Source/EvalController.h +++ b/Source/EvalController.h @@ -34,6 +34,7 @@ - (void)runModalForWindow:(NSWindow*)parent; +- (IBAction)evaluateScript:(id)sender; - (IBAction)closeWindow:(id)sender; @end diff --git a/Source/EvalController.m b/Source/EvalController.m index 2a2a884..ced1559 100644 --- a/Source/EvalController.m +++ b/Source/EvalController.m @@ -52,6 +52,11 @@ [self autorelease]; } +- (IBAction)evaluateScript:(id)sender +{ + NSLog(@"will evluate: %@", [self.dataField stringValue]); +} + - (IBAction)closeWindow:(id)sender { [self close]; -- 2.43.5