[macruby-changes] [429] MacRuby/trunk/bin/hotcocoa

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 12 20:43:15 PDT 2008


Revision: 429
          http://trac.macosforge.org/projects/ruby/changeset/429
Author:   rich at infoether.com
Date:     2008-08-12 20:43:15 -0700 (Tue, 12 Aug 2008)
Log Message:
-----------
add label

Modified Paths:
--------------
    MacRuby/trunk/bin/hotcocoa

Modified: MacRuby/trunk/bin/hotcocoa
===================================================================
--- MacRuby/trunk/bin/hotcocoa	2008-08-13 03:35:11 UTC (rev 428)
+++ MacRuby/trunk/bin/hotcocoa	2008-08-13 03:43:15 UTC (rev 429)
@@ -46,9 +46,12 @@
 
 include HotCocoa
 
+# Replace the following code with your own hotcocoa code
+
 application do |app|
   window :frame => [100, 100, 500, 500], :title => "#{app_name}" do |win|
-     win.will_close { exit }
+    win << label(:text => "Hello from HotCocoa", :layout => {:start => false})
+    win.will_close { exit }
   end
 end
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080812/383e8245/attachment-0001.html 


More information about the macruby-changes mailing list