[macruby-changes] [366] MacRuby/trunk/lib/hotcocoa

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 10 17:40:01 PDT 2008


Revision: 366
          http://trac.macosforge.org/projects/ruby/changeset/366
Author:   rich at infoether.com
Date:     2008-07-10 17:40:01 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
reverse ancestors so the last thing included is the current class and remove duplicate methods

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/mapper.rb
    MacRuby/trunk/lib/hotcocoa/mappings/box.rb
    MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb

Modified: MacRuby/trunk/lib/hotcocoa/mapper.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mapper.rb	2008-07-10 21:35:03 UTC (rev 365)
+++ MacRuby/trunk/lib/hotcocoa/mapper.rb	2008-07-11 00:40:01 UTC (rev 366)
@@ -66,7 +66,7 @@
     end
     
     def each_control_ancestor
-      control_class.ancestors.each do |ancestor|
+      control_class.ancestors.reverse.each do |ancestor|
         Mappings.mappings.values.each do |mapper|
           yield mapper if mapper.control_class == ancestor
         end

Modified: MacRuby/trunk/lib/hotcocoa/mappings/box.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/box.rb	2008-07-10 21:35:03 UTC (rev 365)
+++ MacRuby/trunk/lib/hotcocoa/mappings/box.rb	2008-07-11 00:40:01 UTC (rev 366)
@@ -26,10 +26,6 @@
   
   custom_methods do
     
-    def <<(view)
-      addSubview(view)
-    end
-    
     def title_position=(value)
       setTitlePosition(value)
     end

Modified: MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb	2008-07-10 21:35:03 UTC (rev 365)
+++ MacRuby/trunk/lib/hotcocoa/mappings/split_view.rb	2008-07-11 00:40:01 UTC (rev 366)
@@ -8,10 +8,6 @@
   
   custom_methods do
     
-    def <<(view)
-      addSubview(view)
-    end
-    
     def horizontal=(value)
       setVertical(!value)
     end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/e62d6b0b/attachment.html 


More information about the macruby-changes mailing list