[MacRuby-devel] [macruby] #84: NSColor method dispatching problems
macruby
ruby-noreply at macosforge.org
Sun Jun 22 06:02:14 PDT 2008
#84: NSColor method dispatching problems
---------------------------------+------------------------------------------
Reporter: psychs at limechat.net | Owner: lsansonetti at apple.com
Type: defect | Status: closed
Priority: major | Milestone:
Component: MacRuby | Resolution: invalid
Keywords: |
---------------------------------+------------------------------------------
Changes (by lsansonetti at apple.com):
* status: new => closed
* resolution: => invalid
Comment:
This looks like an expected behavior.
{{{colorWithCalibratedRed_green_blue_alpha(a, b, c, d)}}} is RubyCocoa-
like syntax, which is not supported in !MacRuby. It has to be rewritten
like {{{colorWithCalibratedRed(a, green:b, blue:c, alpha:d)}}}.
Corresponding Objective-C method is:
{{{+ (NSColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green
blue:(CGFloat)blue alpha:(CGFloat)alpha}}}
What do you think?
--
Ticket URL: <http://ruby.macosforge.org/trac/ticket/84#comment:1>
macruby <http://ruby.macosforge.org/>
More information about the MacRuby-devel
mailing list