JSAction base property should be eweak as it creates a circular reference with base...
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Feb 2013 17:36:56 +0000 (18:36 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Feb 2013 17:36:56 +0000 (18:36 +0100)
Enjoy.xcodeproj/project.pbxproj
JSAction.h
SubAction.m

index fc595d3..b8dc528 100644 (file)
                                GCC_PREFIX_HEADER = Enjoy_Prefix.pch;
                                INFOPLIST_FILE = Info.plist;
                                INSTALL_PATH = "$(HOME)/Applications";
-                               MACOSX_DEPLOYMENT_TARGET = 10.6.8;
+                               MACOSX_DEPLOYMENT_TARGET = 10.7;
                                PRODUCT_NAME = Enjoy;
                        };
                        name = Debug;
                                GCC_PREFIX_HEADER = Enjoy_Prefix.pch;
                                INFOPLIST_FILE = Info.plist;
                                INSTALL_PATH = "$(HOME)/Applications";
-                               MACOSX_DEPLOYMENT_TARGET = 10.6.8;
+                               MACOSX_DEPLOYMENT_TARGET = 10.7;
                                PRODUCT_NAME = Enjoy;
                        };
                        name = Release;
index 8e52e9c..b92c7d6 100644 (file)
@@ -9,15 +9,12 @@
 #import <Foundation/Foundation.h>
 #import <IOKit/hid/IOHIDBase.h>
 
-@interface JSAction : NSObject {
-       id base;
-       NSString *name;
-}
+@interface JSAction : NSObject
 
-@property (assign) voidcookie;
+@property (assign) void *cookie;
 @property (assign) int index;
 @property (copy) NSArray *children;
-@property (strong) id base;
+@property (weak) id base;
 @property (copy) NSString *name;
 @property (assign) BOOL active;
 @property (readonly) float magnitude;
index 501d457..45ad4ea 100644 (file)
@@ -21,7 +21,7 @@
 }
 
 -(NSString*) stringify {
-       return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], self.index];
+       return [[NSString alloc] initWithFormat: @"%@~%d", [self.base stringify], self.index];
 }
 
 @end