summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJess VanDerwalker <washu@sonic.net>2012-03-10 13:56:35 -0800
committerJess VanDerwalker <washu@sonic.net>2012-03-10 13:56:35 -0800
commit545633f163c18f9b259dfef96f9efc07d11b863c (patch)
tree6ba84b4c49b7a4798e20a090b5bcac144d588a3b
parentd71769c9e0c95401f49ebe388b639bbfcf2391e5 (diff)
Error with decleration of notificationCenter var. Fixed.
-rw-r--r--src/xtoq/XtoqApplication.h11
-rw-r--r--src/xtoq/XtoqApplication.m9
-rw-r--r--src/xtoq/XtoqView.h1
3 files changed, 13 insertions, 8 deletions
diff --git a/src/xtoq/XtoqApplication.h b/src/xtoq/XtoqApplication.h
index c0a80cf..b0e0fb6 100644
--- a/src/xtoq/XtoqApplication.h
+++ b/src/xtoq/XtoqApplication.h
@@ -31,10 +31,15 @@
#define environ (*_NSGetEnviron())
#endif
-@interface XtoqApplication : NSApplication
+@interface XtoqApplication : NSApplication {
+
+// NSNotificationCenter * notificationCenter;
+}
-int XtoqApplicationMain(int argc, char** argv);
- (void) sendEvent:(NSEvent *)e;
-NSNotificationCenter * notificationCenter;
@end
+
+int
+XtoqApplicationMain(int argc, char** argv);
+
diff --git a/src/xtoq/XtoqApplication.m b/src/xtoq/XtoqApplication.m
index 0d83e08..9e3e9b2 100644
--- a/src/xtoq/XtoqApplication.m
+++ b/src/xtoq/XtoqApplication.m
@@ -110,7 +110,7 @@ int XtoqApplicationMain(int argc, char** argv){
[controller setScreen:scrn];
[NSApp setDelegate: controller];
- notificationCenter = [NSNotificationCenter defaultCenter];
+ // notificationCenter = [NSNotificationCenter defaultCenter];
[NSApp run];
@@ -136,9 +136,10 @@ int XtoqApplicationMain(int argc, char** argv){
[threeInfoDict setObject:e forKey:@"1"];
[threeInfoDict setObject:xObject forKey:@"2"];
[threeInfoDict setObject:yObject forKey:@"3"];
- [notificationCenter postNotificationName:@"MouseMovedEvent"
- object:self
- userInfo:threeInfoDict];
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName:@"MouseMovedEvent"
+ object:self
+ userInfo:threeInfoDict];
break;
default: [super sendEvent:e];
diff --git a/src/xtoq/XtoqView.h b/src/xtoq/XtoqView.h
index ec5227e..61ab384 100644
--- a/src/xtoq/XtoqView.h
+++ b/src/xtoq/XtoqView.h
@@ -28,7 +28,6 @@ SOFTWARE.
*/
#import <Cocoa/Cocoa.h>
-// #import "xtoq_internal.h"
#import "XtoqImageRep.h"
#import "xtoq.h"