[MacRuby-devel] [macruby] #84: NSColor method dispatching problems

macruby ruby-noreply at macosforge.org
Mon Jun 23 16:07:47 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:                       |  
---------------------------------+------------------------------------------
Comment (by eloy.de.enige at gmail.com):

 With the RubyCocoa layer:

 {{{
 % macirb -rosx/cocoa
 irb(main):001:0> c = NSColor.colorWithCalibratedRed_green_blue_alpha(1.0,
 1.0, 1.0, 1.0)
 => #<NSCachedRGBColor:0x1b148f0>
 irb(main):002:0> c.blendedColorWithFraction_ofColor(0.5,
 NSColor.greenColor)
 => #<NSCalibratedRGBColor:0x1b36d10>
 }}}

-- 
Ticket URL: <http://ruby.macosforge.org/trac/ticket/84#comment:2>
macruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list