#723: nsset + bindings error
-----------------------------------+----------------------------------------
Reporter: jakub.su...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Comment(by martinlagarde...@…):
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel