the.rubist wrote:
> i try to set the right parameter for the following Cocoa-Method with
> RubyCocoa:
>
> OSX::NSOpenGLPixelFormat.alloc.init.initWithAttributes
>
> i don't know how i must initialize the "attribs" - parameter with
> RubyCocoa.

The docs for the Objective-C version say it's a list of integers and
booleans. It looks like you'll need to define the appropriate constants
yourself (Apple's documentation has a list of them), but once you do
that, it should work pretty much as documented (assuming RubyCocoa
properly supports varargs).

By the way, you're not actually writing init.initWithAttributes, are
you?