Ticket #241 (closed defect: fixed)
NSMutableSet#merge fails
| Reported by: | kourge@… | Owned by: | ben@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.4 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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$
Change History
Note: See
TracTickets for help on using
tickets.

