[MacRuby-devel] [macruby] #84: NSColor method dispatching problems
macruby
ruby-noreply at macosforge.org
Sun Jun 22 05:08:24 PDT 2008
#84: NSColor method dispatching problems
---------------------------------+------------------------------------------
Reporter: psychs at limechat.net | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
{{{
framework 'Cocoa'
# it doesn't work
c = NSColor.colorWithCalibratedRed_green_blue_alpha(1.0, 1.0, 1.0, 1.0)
# it works
c = NSColor.colorWithCalibratedRed(1.0, green:1.0, blue:1.0, alpha:1.0)
# it doesn't work
c.blendedColorWithFraction_ofColor(0.5, NSColor.greenColor)
# it works
c.blendedColorWithFraction(0.5, ofColor:NSColor.greenColor)
}}}
{{{
test.rb:4:in `<main>': undefined method
`colorWithCalibratedRed_green_blue_alpha' for NSColor:Class
(NoMethodError)
}}}
{{{
test.rb:10:in `<main>': undefined method
`blendedColorWithFraction_ofColor' for #<NSCachedRGBColor:0x14b6070>
(NoMethodError)
}}}
--
Ticket URL: <http://ruby.macosforge.org/trac/ticket/84>
macruby <http://ruby.macosforge.org/>
More information about the MacRuby-devel
mailing list