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
c358c8d
..
12449ce
100644
(file)
--- a/
JSActionButton.m
+++ b/
JSActionButton.m
@@
-5,6
+5,8
@@
// Created by Sam McCall on 5/05/09.
//
// Created by Sam McCall on 5/05/09.
//
+#import "JSActionButton.h"
+
@implementation JSActionButton {
BOOL active;
}
@implementation JSActionButton {
BOOL active;
}
@@
-14,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.index + 1
, name_];
+ self.name = [NSString stringWithFormat:@"Button %d - %@",
idx
, name_];
else
else
- self.name = [NSString stringWithFormat:@"Button %d",
self.index + 1
];
+ self.name = [NSString stringWithFormat:@"Button %d",
idx
];
}
return self;
}
}
return self;
}