[macruby-changes] [3980] MacRuby

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 29 17:06:29 PDT 2010


Revision: 3980
          http://trac.macosforge.org/projects/ruby/changeset/3980
Author:   martinlagardette at apple.com
Date:     2010-04-29 17:06:24 -0700 (Thu, 29 Apr 2010)
Log Message:
-----------
HotCocoa style > MacRuby style

Modified Paths:
--------------
    MacRuby/branches/0.6/sample-macruby/ViewModelDemo/Superview.rb
    MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb

Modified: MacRuby/branches/0.6/sample-macruby/ViewModelDemo/Superview.rb
===================================================================
--- MacRuby/branches/0.6/sample-macruby/ViewModelDemo/Superview.rb	2010-04-29 21:13:49 UTC (rev 3979)
+++ MacRuby/branches/0.6/sample-macruby/ViewModelDemo/Superview.rb	2010-04-30 00:06:24 UTC (rev 3980)
@@ -31,12 +31,12 @@
 	
   def moveSubviewToTop(mySubview)
     # Moves the given subview to the top, for drawing order purposes
-    addSubview_positioned_relativeTo_(mySubview, NSWindowBelow, subviews.lastObject)
+    addSubview(mySubview, positioned:NSWindowBelow, relativeTo:subviews.lastObject)
   end
 	
   def moveSubviewToIndex(mySubview, i)
     # An index of 0 will move it behind all others
-    addSubview_positioned_relativeTo_(mySubview, NSWindowBelow, subviews.objectAtIndex(i))
+    addSubview(mySubview, positioned:NSWindowBelow, relativeTo:subviews.objectAtIndex(i))
   end
 	
   def startTimer

Modified: MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb
===================================================================
--- MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb	2010-04-29 21:13:49 UTC (rev 3979)
+++ MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb	2010-04-30 00:06:24 UTC (rev 3980)
@@ -31,12 +31,12 @@
 	
   def moveSubviewToTop(mySubview)
     # Moves the given subview to the top, for drawing order purposes
-    addSubview_positioned_relativeTo_(mySubview, NSWindowBelow, subviews.lastObject)
+    addSubview(mySubview, positioned:NSWindowBelow, relativeTo:subviews.lastObject)
   end
 	
   def moveSubviewToIndex(mySubview, i)
     # An index of 0 will move it behind all others
-    addSubview_positioned_relativeTo_(mySubview, NSWindowBelow, subviews.objectAtIndex(i))
+    addSubview(mySubview, positioned:NSWindowBelow, relativeTo:subviews.objectAtIndex(i))
   end
 	
   def startTimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100429/16ee3398/attachment.html>


More information about the macruby-changes mailing list