[MacRuby] #241: NSMutableSet#merge fails
#241: NSMutableSet#merge fails ------------------------------+--------------------------------------------- Reporter: kourge@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- NSMutableSet#merge succeeds if called with another NSMutableSet, but it fails when passed an Enumerable, such as NSMutableArray. {{{ ~ kourge$ irb
s = Set[1, 2] NameError: uninitialized constant Set from (irb):1 require 'set' => true s = Set[1, 2] => #<Set: {1, 2}> s.merge [3, 4] => #<Set: {1, 2, 3, 4}> quit ~ kourge$ macirb s = Set[1, 2] => #<NSMutableSet:0x800754380> s.merge [3, 4] 2009-03-30 23:54:03.319 macruby[233:10b] *** -[NSCFArray _applyValues:context:]: unrecognized selector sent to instance 0x80047cd80 2009-03-30 23:54:03.365 macruby[233:10b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArray _applyValues:context:]: unrecognized selector sent to instance 0x80047cd80' 2009-03-30 23:54:03.366 macruby[233:10b] Stack: ( 140735351352508, 140735358957775, 140735351379451, 140735351372932, 140735351373272, 4295759037, 4296060391, 4296017807, 4296038178, 4296040810, 4296042845, 4296060391, 4296017807, 4296038178, 4296074114, 4295152255, 4295972133, 4296060391, 4296017807, 4296038178, 4296066197, 4296060391, 4296017807, 4296038178, 4296066197, 4296060391, 4296017807, 4296038178, 4296038828, 4295151426, 4295164679, 4294971167, 4294971044 ) terminate called after throwing an instance of 'NSException' Abort trap ~ kourge$
}}} -- Ticket URL: <http://www.macruby.org/trac/ticket/241> MacRuby <http://macruby.org/>
#241: NSMutableSet#merge fails ------------------------------+--------------------------------------------- Reporter: kourge@… | Owner: ben@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Changes (by ben@…): * owner: lsansonetti@… => ben@… Comment: Looks like I’m not properly coercing to a set. -- Ticket URL: <http://www.macruby.org/trac/ticket/241#comment:1> MacRuby <http://macruby.org/>
#241: NSMutableSet#merge fails ------------------------------+--------------------------------------------- Reporter: kourge@… | Owner: ben@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by ben@…): While fixing this I found out that the tests hang in #==…I’ll write a new one about that. -- Ticket URL: <http://www.macruby.org/trac/ticket/241#comment:2> MacRuby <http://macruby.org/>
#241: NSMutableSet#merge fails ------------------------------+--------------------------------------------- Reporter: kourge@… | Owner: ben@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------+--------------------------------------------- Changes (by ben@…): * status: new => closed * resolution: => fixed Comment: Fixed in [1401]. -- Ticket URL: <http://www.macruby.org/trac/ticket/241#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby