#275: [HotCocoa] convert underscore names to camelcase names in mapper
---------------------------------+------------------------------------------
Reporter: d...@… | Owner: lsansone...@…
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by eloy.de.en...@…):
I like that you got to it immediately :)
I have a few remarks/questions:
* Since this is a real functional change, I'd like to see some test
coverage with the patch.
* If I recall correctly, Rich already added a String#camel_case method to
HotCocoa, so you should use that to convert to the selector.
* Why actually, and this was before your change there as well, do we use
Kernel#eval to set the value? The setter methods will always be public, so
I don't see why we can't just change "eval 'control.#{key} = value"' to
'control.send("#{key}=", value)'.
Thanks for your time!
--
Ticket URL: <http://www.macruby.org/trac/ticket/275#comment:1>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel