projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More compiler warnings on. Make all properties nonatomic.
[enjoyable.git]
/
JSActionButton.m
diff --git
a/JSActionButton.m
b/JSActionButton.m
index
12449ce
..
7d2572a
100644
(file)
--- a/
JSActionButton.m
+++ b/
JSActionButton.m
@@
-8,17
+8,14
@@
#import "JSActionButton.h"
@implementation JSActionButton {
#import "JSActionButton.h"
@implementation JSActionButton {
-
BOOL active
;
+
long _max
;
}
}
-@synthesize max;
-@synthesize active;
-
-- (id)initWithName:(NSString *)name_ idx:(int)idx max:(int)max_ {
+- (id)initWithName:(NSString *)name idx:(int)idx max:(long)max {
if ((self = [super init])) {
if ((self = [super init])) {
-
self.max = max_
;
- if (name
_
.length)
- self.name = [NSString stringWithFormat:@"Button %d - %@", idx, name
_
];
+
_max = max
;
+ if (name.length)
+ self.name = [NSString stringWithFormat:@"Button %d - %@", idx, name];
else
self.name = [NSString stringWithFormat:@"Button %d", idx];
}
else
self.name = [NSString stringWithFormat:@"Button %d", idx];
}
@@
-26,11
+23,11
@@
}
- (id)findSubActionForValue:(IOHIDValueRef)val {
}
- (id)findSubActionForValue:(IOHIDValueRef)val {
- return (IOHIDValueGetIntegerValue(val) == max) ? self : nil;
+ return (IOHIDValueGetIntegerValue(val) ==
_
max) ? self : nil;
}
- (void)notifyEvent:(IOHIDValueRef)value {
}
- (void)notifyEvent:(IOHIDValueRef)value {
-
active = IOHIDValueGetIntegerValue(value) ==
max;
+
self.active = IOHIDValueGetIntegerValue(value) == _
max;
}
@end
}
@end