[MacRuby] #1289: ABPresence example app fails during init
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- MacRuby 0.10 OS X.6.7 Output: /Developer/Examples/Ruby/MacRuby/ABPresence/build/Debug/ABPresence.app/Contents/Resources/PeopleDataSource.rb:59:in `reloadABPeople': can't modify frozen/immutable array (RuntimeError) from /Developer/Examples/Ruby/MacRuby/ABPresence/build/Debug/ABPresence.app/Contents/Resources/PeopleDataSource.rb:16:in `awakeFromNib' from /Developer/Examples/Ruby/MacRuby/ABPresence/build/Debug/ABPresence.app/Contents/Resources/rb_main.rb:24:in `<main>' -- Ticket URL: <http://www.macruby.org/trac/ticket/1289> MacRuby <http://macruby.org/>
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Comment(by mrada@…): What version of MacRuby were you using? -- Ticket URL: <http://www.macruby.org/trac/ticket/1289#comment:1> MacRuby <http://macruby.org/>
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Comment(by kouji@…): He or she wrote MacRuby version: MacRuby 0.10 OS X.6.7. -- Ticket URL: <http://www.macruby.org/trac/ticket/1289#comment:2> MacRuby <http://macruby.org/>
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Comment(by lsansonetti@…): It works on my environment (Lion). Can someone try it? -- Ticket URL: <http://www.macruby.org/trac/ticket/1289#comment:3> MacRuby <http://macruby.org/>
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Comment(by mrada@…): Works for me as well; but it is easy to reproduce the issue by changing #sort to #sort! on that line of code in the backtrace. -- Ticket URL: <http://www.macruby.org/trac/ticket/1289#comment:4> MacRuby <http://macruby.org/>
#1289: ABPresence example app fails during init ------------------------------------------+--------------------------------- Reporter: merchants08@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------------+--------------------------------- Comment(by lsansonetti@…): Yes, because that API returns an NSString, which is not mutable. But the sample code does use #sort which should work on immutable NSStrings. So I don't understand why the exception is raised in his case. -- Ticket URL: <http://www.macruby.org/trac/ticket/1289#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby