Skip to content

Commit

Permalink
Fixed a small bug in capitalizing boolean getter with long camel case…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
holtwick committed Jan 12, 2011
1 parent 696efcd commit ca7d84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xobjc.py
Expand Up @@ -396,7 +396,7 @@ def analyze(hdata, mdata):
else: else:
mode = mode[1:] mode = mode[1:]
if BOOL_WITH_IS_GETTER and type_ == "BOOL": 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)) propBlock.append("@property (%s%s%s) %s %s%s;" % (propMarker, NONATOMIC, mode, type_, star, pvname))


# print mode # print mode
Expand Down

0 comments on commit ca7d84b

Please sign in to comment.