[MacRuby-devel] building a GUI in macirb

Jakub Suder jakub.suder at gmail.com
Thu Apr 15 02:07:58 PDT 2010


Hi,

is it possible to build a simple GUI (window, button, textfield, etc.)
in the console (macirb), just for demonstration purposes? I tried
that, but first I couldn't even construct a window (I was getting some
horrible errors), I found somewhere that I need to call
NSApplicationLoad() once, then I was able to build a window, but if I
add something to its contentView it doesn't appear, and the mouse
cursor is the spinning beach ball when I hover over that window. I
assume I need to call something to let the app process the events in
the queue, but I have no idea how to do that... is what I want to
achieve possible?

Best regards,
Jakub Suder


More information about the MacRuby-devel mailing list