[macruby-changes] [431] MacRuby/branches/lrz_unstable/lib/hotcocoa/mappings/button.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 12 23:05:58 PDT 2008
Revision: 431
http://trac.macosforge.org/projects/ruby/changeset/431
Author: lsansonetti at apple.com
Date: 2008-08-12 23:05:57 -0700 (Tue, 12 Aug 2008)
Log Message:
-----------
removing useless custom method, because there is already a similar constant definition above
Modified Paths:
--------------
MacRuby/branches/lrz_unstable/lib/hotcocoa/mappings/button.rb
Modified: MacRuby/branches/lrz_unstable/lib/hotcocoa/mappings/button.rb
===================================================================
--- MacRuby/branches/lrz_unstable/lib/hotcocoa/mappings/button.rb 2008-08-13 04:50:29 UTC (rev 430)
+++ MacRuby/branches/lrz_unstable/lib/hotcocoa/mappings/button.rb 2008-08-13 06:05:57 UTC (rev 431)
@@ -55,18 +55,6 @@
def type=(value)
setButtonType(value)
end
-
- def state=(value)
- case value
- when :on
- value = NSOnState
- when :off
- value = NSOffState
- when :mixed
- value = NSMixedState
- end
- setState(value)
- end
def on?
state == NSOnState
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080812/145387da/attachment.html
More information about the macruby-changes
mailing list