Re: [MacRuby-devel] MacRuby not finding a method that Ruby is

2009-10-08 Thread Edward Hynes
0.4 anymore, so it would be great if you could try your code with trunk and let us know if the bug is still there. Then we can try to reduce it and fix it :) Laurent On Oct 7, 2009, at 9:16 PM, Edward Hynes wrote: I'm still on a 32-bit machine, so can't try 0.5 yet :^( I did

Re: [MacRuby-devel] MacRuby not finding a method that Ruby is

2009-10-07 Thread Edward Hynes
51 PM, Matt Aimonetti wrote: you might want to try your luck with 0.5 - Matt On Wed, Oct 7, 2009 at 7:37 PM, Edward Hynes wrote: Hi, I'm attempting to use the RParsec gem under MacRuby, but am getting a NoMethodError when it loads. I've create a test file that simply adds

[MacRuby-devel] MacRuby not finding a method that Ruby is

2009-10-07 Thread Edward Hynes
Hi, I'm attempting to use the RParsec gem under MacRuby, but am getting a NoMethodError when it loads. I've create a test file that simply adds my local gem directory to the front of the library search path and then calls "require 'rparsec'". This file runs fine under Ruby 1.9, but prod

[MacRuby-devel] Initializing Structs with Bytes?

2009-09-25 Thread Edward Hynes
Hi, I'm calling a function, via bridesupport, that returns a void pointer to a c structure. I'd like to instantiate a MacRuby structure using that void pointer. Is there a way to do this? Thanks, Ed ___ MacRuby-devel mailing list MacRuby-devel@

[MacRuby-devel] BridgeSupport and Parameter Errors

2009-09-09 Thread Edward Hynes
I'm trying to re-implement the PlaySoftMIDI example from the Xcode installation in MacRuby, but am getting parameter errors. Could some kind soul point me in the right direction? Below is a small example that ends with a parameter error. The call to NewAUGraph appears to work, returning a

[MacRuby-devel] Xcode Executable Arguments

2009-07-29 Thread Edward Hynes
through to the application? I'm setting the arguments using the defaults command for now, but it would prefer doing so within Xcode if possible. Thanks, Ed -- Edward Hynes Dharma Gaia LLC "Software with the Earth in Mind" http://dharmagaia.com __

Re: [MacRuby-devel] How to retrieve an observer's context?

2009-04-20 Thread Edward Hynes
Hi Laurent, Thanks for the help. Did you mean to set the context ivar on the observer or on the subject? Wouldn't setting it on the observer result in the last registration 'winning' if the observer is watching more than one subject? Ed On Apr 20, 2009, at 4:28 PM, Laurent Sansonetti w

[MacRuby-devel] How to retrieve an observer's context?

2009-04-20 Thread Edward Hynes
I'd like to use contexts when registering some observers, but have been unable to retrieve them, getting a "can't convert C/Objective-C value `0x2822731' of type `v' to Ruby object" instead. The following code, for example, will trigger the error class Subject attr_accessor :abc end cla

Re: [MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Edward Hynes
Accessors, it's s obvious (after you all pointed the way ;^) Thanks, Ed ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] Accessing Obj-C InstVars from Ruby

2009-03-30 Thread Edward Hynes
Is there a way to access instance variables defined in an Objective-C class from a Ruby extension? I'm porting some of Apple's example code to MacRuby as a learning experience and would like to do so incrementally. Porting the code one class at a time works fine, but for some of the large