[macruby-changes] [328] MacRuby/trunk/lib/hotcocoa/mappings/popup.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 7 21:49:52 PDT 2008


Revision: 328
          http://trac.macosforge.org/projects/ruby/changeset/328
Author:   rich at infoether.com
Date:     2008-07-07 21:49:52 -0700 (Mon, 07 Jul 2008)
Log Message:
-----------
rename variable to be more accurate

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/mappings/popup.rb

Modified: MacRuby/trunk/lib/hotcocoa/mappings/popup.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/popup.rb	2008-07-08 04:42:16 UTC (rev 327)
+++ MacRuby/trunk/lib/hotcocoa/mappings/popup.rb	2008-07-08 04:49:52 UTC (rev 328)
@@ -72,11 +72,11 @@
         control.selectedItem
       end
 
-      def selected=(title)
-        if title.kind_of?(Fixnum)
-          control.selectItemAtIndex(title)
+      def selected=(menu_item)
+        if menu_item.kind_of?(Fixnum)
+          control.selectItemAtIndex(menu_item)
         else
-          control.selectItem(title)
+          control.selectItem(menu_item)
         end
       end
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080707/c01cade6/attachment.html 


More information about the macruby-changes mailing list