Re: [MacRuby-devel] Using performRubySelector

2009-06-02 Thread Mike Laurence
FYI to all MIDI-hungry folks: I've gotten MIDI input to work perfectly with MacRuby (hooray!) I'm working on output today, and hopefully I'll have something workable up on github shortly. As it turns out, I never could get performRubySelector to work the way I wanted, but I realized I wanted to u

Re: [MacRuby-devel] Using performRubySelector

2009-05-28 Thread Mike Laurence
I'll try and post what I was working on to Github, but it's fairly incomplete, as I didn't want to get too far and then find out I couldn't send messages to ruby the way I thought :-) This little MIDI project of mine was just to get my formerly-RubyCocoa (and thus formerly Midiator / DL / rbcoremi

Re: [MacRuby-devel] Using performRubySelector

2009-05-28 Thread Jeremy Voorhis
I'd love to do it in FFI, but getting this far in C was a lot of work! ... so here's another crackpot idea of mine. Another project I have been following is the Pure Language . It aims to be a simple, interpreted functional language based on term-rewriting, and

Re: [MacRuby-devel] Using performRubySelector

2009-05-28 Thread Matt Aimonetti
I second what Jeremy said. A nice Midi wrapper would be great. Jeremy, regarding your MusicPlayer lib, the other option is to port it to FFI and therefore making it JRuby and MacRuby compatible. - Matt On Thu, May 28, 2009 at 10:32 AM, Jeremy Voorhis wrote: > Mike, > > Is your code available an

Re: [MacRuby-devel] Using performRubySelector

2009-05-28 Thread Jeremy Voorhis
Mike, Is your code available anywhere, e.g. on github? I haven't looked at the PyObjC code myself, but I'd be interested in having really decent CoreMIDI support available in MacRuby. Btw, when C extensions are supported, simple apps will be able to use my MusicPlayer lib at http://github.com/jvo

Re: [MacRuby-devel] Using performRubySelector

2009-05-27 Thread Mike Laurence
Hmmm... I'm doing several things different, perhaps one or more of them are impossible :-) Basically, I'm trying to get MIDI support into Ruby via the PYMIDI obj-c library, which is really just a wrapper around CoreMIDI. One way I had thought of: create an additional obj-c class (MidiReceiver) whi

Re: [MacRuby-devel] Using performRubySelector

2009-05-27 Thread Laurent Sansonetti
Hi Mike, On May 26, 2009, at 5:45 PM, Mike Laurence wrote: Hello, I'm trying to get some obj-c code to talk back to my ruby. After encountering some "EXC_BAD_ACCESS" messages and scouring the web, I've concluded that I'm probably supposed to use performRubySelector instead of just expecting se

[MacRuby-devel] Using performRubySelector

2009-05-26 Thread Mike Laurence
Hello, I'm trying to get some obj-c code to talk back to my ruby. After encountering some "EXC_BAD_ACCESS" messages and scouring the web, I've concluded that I'm probably supposed to use performRubySelector instead of just expecting selectors to work when overridden by ruby subclasses, etc. What