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
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
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
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
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
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
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
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
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
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:
10 matches
Mail list logo