Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-18 Thread Robert Lowe
I see the issue your having, I'm not sure why the objective-c delegate class and the macruby delegate class act differently. It appears to work when subclasses which is interesting. It's either a macruby bug or something in the headers. Regards, - Rob _

Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-18 Thread Chong Francis
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/MacRuby

Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-18 Thread Daniel Westendorf
Thanks for the input. I had sent the message to this group hoping to get just that type of wisdom. I had given up (trying to use MacRuby w/PXSourceList) since I hadn't heard any such obvious comments. I had thought that I had implemented that method (I had hacked around a number of attempts), I mu

Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-18 Thread 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

Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-18 Thread Daniel Westendorf
Thanks for looking into this. I've given up and decided to just implement this in Objective-C instead of trying to muddle with MacRuby. Daniel 2011/7/12 Chong Francis : > I encountered same issue, the methods: > - (NSInteger)sourceList:(PXSourceList*)aSourceList > badgeValueForItem:(id)item > > -

Re: [MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-12 Thread Chong Francis
I encountered same issue, the methods: - (NSInteger)sourceList:(PXSourceList*)aSourceList badgeValueForItem:(id)item - (NSUInteger)sourceList:(PXSourceList*)sourceList numberOfChildrenOfItem:(id)item is where the BAD_ACCESS happens. If i implement those methods in Obj-C, subclass it in ruby and

[MacRuby-devel] Implement PXSourceList in MacRuby

2011-07-02 Thread Daniel Westendorf
Hi guys, I'm trying to implement a PXSourclist (http://perspx.com/work/) in MacRuby instead of re-inventing the wheel. The PXSourcelist demo builds fine, but when I try to port the dataSource methods over to MacRuby, the app tanks without much information. I'm wondering if someone could point out