Hi Robert, Thank you for bring up this.
Would you give your insight on a similar issue? I have uploaded a demo project: https://github.com/siuying/MacRubyPXListView The core is RBListDelegate (https://github.com/siuying/MacRubyPXListView/blob/3ba0f925c2ef535a95fd5858f7e8fa476ca9e0e8/MacRubyPXListView/RBListDelegate.rb) which implements PXListViewDelegate (https://github.com/Perspx/PXListView/blob/master/Classes/PXListViewDelegate.h) It just implement three require method and the expected output is as follow screen: http://dl.dropbox.com/u/164404/list_1.png But instead it would just crash: http://dl.dropbox.com/u/164404/list_2.png Extends this class from ListViewDelegate (https://github.com/siuying/MacRubyPXListView/blob/e394276c0499db54994239b861c54c0d0f186d9d/MacRubyPXListView/ListDelegate.m) make it work without crash (https://github.com/siuying/MacRubyPXListView/blob/e394276c0499db54994239b861c54c0d0f186d9d/MacRubyPXListView/RBListDelegate.rb) , but ListViewDelegate is just implementing those three methods! Thanks Francis Chong Ignition Soft http://ignition.hk/ 在 2011年7月19日 上午6:08 時, Robert Lowe 寫到: > So long and thanks for all the fish. > > Your implementation is wrong, it has nothing to do with macruby. > > You skipped a bunch of code which is required to make it function. > > For instance all SourceListItems must have children. > > When you port Objective-C code ensure you aren't skipping code or using > rubyism (they may do difference things), port the code first then tweak it. > > Regards, > - Rob _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel