[MacRuby] #1386: unrecognized selector error within NSGradient.alloc.initWithColorsAndLocations
#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/>
#1386: unrecognized selector error within NSGradient.alloc.initWithColorsAndLocations ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): 'Use other initializers.' is written in AppKit.bridgesupport for initWithColorsAndLocations.[[BR]] Is this API not support? For initWithColors:atLocations:colorSpace:, also, it is written the same message. {{{ $ grep 'Use other initializers.' /System/Library/Frameworks/AppKit.framework/Resources/BridgeSupport/AppKit.bridgesupport 4216:<method suggestion='Use other initializers.' ignore='true' selector='initWithColors:atLocations:colorSpace:'/> 4217:<method variadic='true' sentinel='0' suggestion='Use other initializers.' ignore='true' selector='initWithColorsAndLocations:'/> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1386#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby