[MacRuby] #1066: TableView bug?
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- There seems to be a bug with NSTableView (tableView:willDisplayCell:forTableColumn:row:). Attached are two test programs (one working and one not working). The script is following (identifiers of two columns are "0" and "1"): {{{ class AppController attr_accessor :table def awakeFromNib @ary = [] end def buttonPushed(sender) @ary = [[0,1],[2,3],[4,5]] @table.reloadData end def numberOfRowsInTableView(tableView) @ary.length end def tableView(tableView,objectValueForTableColumn:col,row:row) @ary[row][col.identifier.to_i] end def tableView(table, willDisplayCell: cell, forTableColumn: col, row: row) p row end end }}} By clicking a button, the table should display numbers, but it crashed. If you check Console, it returned 'nil' for 'row' and then crashed with "EXC_BAD_ACCESS". For col, it returned NSTableColumn object. I'm not sure if there is something wrong with my script, though. -- Ticket URL: <http://www.macruby.org/trac/ticket/1066> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: Looks like it's crashing because MacRuby cannot apply the correct runtime signature when registering the method. I can't believe this has not been reported before… thanks for filing this ticket. -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:1> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Looks like a problem in the new BridgeSupport preview release. Can you confirm you installed it? -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:2> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by yasuimao@…): Yes, I installed BridgeSupport. And I just installed the latest nightly on another Mac without BridgeSupport and the sample app ran fine. Is this an easy fix or is there a way to uninstall BridgeSupport? I really don't need it, but I just installed it to see what it can do. -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:3> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): There is no easy fix or way to uninstall BridgeSupport, I'm afraid. The only solution would be to copy the old AppKit.bridgesupport file from your other Mac. But, I filed an internal bug report about this and we will get this fixed soon. -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:4> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): <rdar://problem/8795662> -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:5> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by bobstevenson@…): This one is also stopping me in my tracks. Is there any other possible workaround as I don't have a old AppKit.bridgesupport file to revert to...? -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:6> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Fortunately, the BridgeSupport bug has been fixed today! I will roll out a new preview version of it this week. Thanks for your patience. -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:8> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => Comment: Should be fixed in BridgeSupport Preview 3. It can be downloaded here: http://www.macruby.org/files/BridgeSupport%20Preview%203.zip -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:9> MacRuby <http://macruby.org/>
#1066: TableView bug? ----------------------------------+----------------------------------------- Reporter: yasuimao@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Comment(by yasuimao@…): Yes, this seems to be fixed, at least on my app. Great! -- Ticket URL: <http://www.macruby.org/trac/ticket/1066#comment:10> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby