projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Indices are for display niceness only, so index them from 1 rather than keep offsetti...
[enjoyable.git]
/
JSActionButton.m
diff --git
a/JSActionButton.m
b/JSActionButton.m
index
c358c8d
..
f6a0fa7
100644
(file)
--- a/
JSActionButton.m
+++ b/
JSActionButton.m
@@
-17,9
+17,9
@@
self.index = idx;
self.max = max_;
if (name_.length)
self.index = idx;
self.max = max_;
if (name_.length)
- self.name = [NSString stringWithFormat:@"Button %d - %@", self.index
+ 1
, name_];
+ self.name = [NSString stringWithFormat:@"Button %d - %@", self.index, name_];
else
else
- self.name = [NSString stringWithFormat:@"Button %d", self.index
+ 1
];
+ self.name = [NSString stringWithFormat:@"Button %d", self.index];
}
return self;
}
}
return self;
}