projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Index hat switch names. Remove JSAction index properties entirely, once the name...
[enjoyable.git]
/
JSActionButton.m
diff --git
a/JSActionButton.m
b/JSActionButton.m
index
58503c8
..
12449ce
100644
(file)
--- a/
JSActionButton.m
+++ b/
JSActionButton.m
@@
-16,12
+16,11
@@
- (id)initWithName:(NSString *)name_ idx:(int)idx max:(int)max_ {
if ((self = [super init])) {
- (id)initWithName:(NSString *)name_ idx:(int)idx max:(int)max_ {
if ((self = [super init])) {
- self.index = idx;
self.max = max_;
if (name_.length)
self.max = max_;
if (name_.length)
- self.name = [NSString stringWithFormat:@"Button %d - %@",
self.inde
x, name_];
+ self.name = [NSString stringWithFormat:@"Button %d - %@",
id
x, name_];
else
else
- self.name = [NSString stringWithFormat:@"Button %d",
self.inde
x];
+ self.name = [NSString stringWithFormat:@"Button %d",
id
x];
}
return self;
}
}
return self;
}