Re: [MacRuby-devel] OpenGL Bus Error

2009-05-04 Thread John Shea
Hi Timothy, maybe you have figured it all out by now - but when doing openGL stuff it is usually in the context (literally and metaphorically) of an NSOpenGLView, you also have to overwrite the initWithFrame method and a few other methods in this class. Within the init method you set up t

[MacRuby-devel] Modal sheet question

2009-05-04 Thread Alex Vollmer
I've been trying to port a small app I've written in MacRuby with a nib file over to HotCocoa. When the app launches a modal sheet is displayed asking the user for credentials. This is done by having both the main window and the credentials sheet in the MainMenu.nib file. In the application

Re: [MacRuby-devel] That bus error: Reproducible and with all gl calls!

2009-05-04 Thread Vincent Isambart
I also reproduce this on the experimental branch, and it's crashing inside OpenGL. Maybe something needs to be done first, before calling OpenGL? I know it's working nice inside a Cocoa application context. I reproduce the same crash with Ruby 1.8 + RubyCocoa too: $ ruby -r osx/cocoa -e

Re: [MacRuby-devel] That bus error: Reproducible and with all gl calls!

2009-05-04 Thread Laurent Sansonetti
I also reproduce this on the experimental branch, and it's crashing inside OpenGL. Maybe something needs to be done first, before calling OpenGL? I know it's working nice inside a Cocoa application context. I reproduce the same crash with Ruby 1.8 + RubyCocoa too: $ ruby -r osx/cocoa -e "OSX

Re: [MacRuby-devel] Rake: Attempting to build MacRuby failed...

2009-05-04 Thread Laurent Sansonetti
I see, thanks for the report, I think that the project won't build if you use ruby 1.9 as the main Ruby interpreter. I will fix that later, in the meantime if you still have 1.8 on your machine, you may want to change your $PATH. Laurent PS: Overriding Apple's Ruby (in case you did it) is

Re: [MacRuby-devel] Void pointers and userData

2009-05-04 Thread Laurent Sansonetti
Hi Kevin, On May 2, 2009, at 6:42 AM, Kevin McGuinness wrote: Hi, I'm wondering if it is possible to use the userData field of NSEvent in MacRuby. I want to add tracking rectangles to a NSView subclass, and store the object that is mouse has entered in the userData field. Something along

[MacRuby-devel] experimental branch: status update

2009-05-04 Thread Laurent Sansonetti
Here is the weekly status update of the experimental branch! I'm sure you were all expecting it and holding your breath! - Implemented BridgeSupport constants, in a lazy fashion (the symbol is retrieved and converted at demand). - The Pointer class was re-implemented. Same behavior as in tr

[MacRuby-devel] That bus error: Reproducible and with all gl calls!

2009-05-04 Thread Timothy McDowell
It looks like all OpenGL methods are giving me bus errors! Meep! -- --Timothy. ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] OpenGL Bus Error

2009-05-04 Thread Timothy McDowell
I was using the 'macirb' and this is what I got: I had entered this: dawnmcds-powerbook-g4-12:~ Tim$ macirb irb(main):001:0> framework 'cocoa' => true irb(main):002:0> framework 'opengl' => true irb(main):003:0> a = NSSize.new => # irb(main):004:0> a => # irb(main):005:0> a.width => 0.0 irb(main):0

[MacRuby-devel] Rake: Attempting to build MacRuby failed...

2009-05-04 Thread Frederick C. Lee
Neophyte here. I'm guessing that the root of the failure is 'rake' is accessing ruby 1.8 files versus 1.9, even though I have ruby 1.9 as my default: [/Users/Ric/workarea/svn/MacRuby/trunk]ruby --version ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9] Here's the abridged rake run: