[macruby-changes] [370] MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 10 20:11:47 PDT 2008


Revision: 370
          http://trac.macosforge.org/projects/ruby/changeset/370
Author:   rich at infoether.com
Date:     2008-07-10 20:11:46 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
now include HotCocoa::Behaviors when you want a custom class to behave like a hotcocoa class

Modified Paths:
--------------
    MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb

Modified: MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
===================================================================
--- MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb	2008-07-11 02:17:29 UTC (rev 369)
+++ MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb	2008-07-11 03:11:46 UTC (rev 370)
@@ -1,9 +1,8 @@
 require 'hotcocoa'
-include HotCocoa
 
 class MyView < NSView
   
-  include LayoutManaged
+  include HotCocoa::Behaviors
 
   DefaultSize = [30, 30]
 
@@ -50,6 +49,8 @@
   end
 end
 
+include HotCocoa
+
 application do |app|
 
   window :frame => [100, 100, 500, 500], :title => "Packing View Madness" do |win|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/c5467abb/attachment.html 


More information about the macruby-changes mailing list