aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/testapp/Controller.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mac/testapp/Controller.m')
-rw-r--r--src/client/mac/testapp/Controller.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/mac/testapp/Controller.m b/src/client/mac/testapp/Controller.m
index a324f147..7831a156 100644
--- a/src/client/mac/testapp/Controller.m
+++ b/src/client/mac/testapp/Controller.m
@@ -31,6 +31,7 @@
#import "Controller.h"
#import "TestClass.h"
+#import "GTMDefines.h"
#include <unistd.h>
#include <mach/mach.h>
@@ -51,7 +52,7 @@
}
- (IBAction)forkTestOptions:(id)sender {
- int tag = [[sender selectedCell] tag];
+ NSInteger tag = [[sender selectedCell] tag];
NSLog(@"sender tag: %d", tag);
if (tag <= 2) {
bpForkOption = tag;
@@ -129,11 +130,11 @@
}
- (IBAction)crash:(id)sender {
- int tag = [sender tag];
+ NSInteger tag = [sender tag];
if (tag == 1) {
[NSObject cancelPreviousPerformRequestsWithTarget:self];
- [self performSelector:@selector(causeCrash) withObject:nil afterDelay:10];
+ [self performSelector:@selector(causeCrash) withObject:nil afterDelay:10.0];
[sender setState:NSOnState];
return;
}