[MacRuby-devel] [MacRuby] #273: [HotCocoa] Add method to disable a control

MacRuby ruby-noreply at macosforge.org
Sat May 30 11:46:08 PDT 2009


#273: [HotCocoa] Add method to disable a control
---------------------------------+------------------------------------------
 Reporter:  dj2@…                |        Owner:  lsansonetti@…        
     Type:  enhancement          |       Status:  closed               
 Priority:  minor                |    Milestone:                       
Component:  MacRuby              |   Resolution:  invalid              
 Keywords:                       |  
---------------------------------+------------------------------------------
Changes (by eloy.de.enige@…):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Methods such as setEnabled are mapped by default to #enabled= and isFoo to
 #foo? by MacRuby. So there should not be any need for these kind of
 changes. Is there a specific reason I overlooked?

 {{{
 % ./miniruby -e "framework 'Cocoa'; c = NSControl.alloc.init; c.enabled =
 true; p c.enabled?"
 true
 % ./miniruby -e "framework 'Cocoa'; c = NSControl.alloc.init; c.enabled =
 false; p c.enabled?"
 false
 }}}

 Thanks

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/273#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list