Permalink
Browse files

Fixed a small bug in capitalizing boolean getter with long camel case…

… names
  • Loading branch information...
1 parent 696efcd commit ca7d84be5244351f9ce162ab3f14101f0eb071df @holtwick committed Jan 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 xobjc.py
View
2 xobjc.py
@@ -396,7 +396,7 @@ def analyze(hdata, mdata):
else:
mode = mode[1:]
if BOOL_WITH_IS_GETTER and type_ == "BOOL":
- mode = "getter=is%s" % pvname.capitalize()
+ mode = "getter=is%s%s" % (pvname[0].capitalize(), pvname[1:])
propBlock.append("@property (%s%s%s) %s %s%s;" % (propMarker, NONATOMIC, mode, type_, star, pvname))
# print mode

0 comments on commit ca7d84b

Please sign in to comment.