[MacRuby] #1386: unrecognized selector error within NSGradient.alloc.initWithColorsAndLocations
MacRuby
ruby-noreply at macosforge.org
Sat Sep 10 00:33:53 PDT 2011
#1386: unrecognized selector error within
NSGradient.alloc.initWithColorsAndLocations
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
framework 'AppKit'
gradient = NSGradient.alloc.initWithColorsAndLocations(
NSColor.redColor, 0.0,
NSColor.blueColor, 0.5,
NSColor.greenColor, 1.0,
nil)
p gradient
}}}
{{{
$ macruby test_gradient.rb
2011-09-10 16:30:40.817 macruby[541:60b] -[__NSCFNumber
colorUsingColorSpace:]: unrecognized selector sent to instance 0x4002609a0
/Users/watson/tmp/test_gradient.rb:7:in `<main>':
NSInvalidArgumentException: -[__NSCFNumber colorUsingColorSpace:]:
unrecognized selector sent to instance 0x4002609a0 (RuntimeError)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1386>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list