[MacRuby-devel] [MacRuby] #723: nsset + bindings error
MacRuby
ruby-noreply at macosforge.org
Tue May 25 16:06:53 PDT 2010
#723: nsset + bindings error
-----------------------------------+----------------------------------------
Reporter: jakub.suder@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Comment(by martinlagardette@…):
This code can be reduced to the following:
{{{
#!ruby
framework "Foundation"
NSSet.setWithObjects("pictures", nil)
NSSet.setWithObjects("sender", "recipient", nil)
}}}
Just like Jakub said in his explanation, inverting the calls will make
this work. I suspect this may have something to do with the stub
generation, because the first call wil always work, and subsequent calls
with lesser arguments will work just as well, but if you add more
arguments than the first call, it will crash:
{{{
#!ruby
framework "Foundation"
NSSet.setWithObjects("1", "2", "3", "4", "5", "6", nil)
NSSet.setWithObjects("1", "2", "3", "4", "5", "6", "7", nil)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/723#comment:4>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list