[MacRuby] #273: [HotCocoa] Add method to disable a control
#273: [HotCocoa] Add method to disable a control ---------------------------------+------------------------------------------ Reporter: dj2@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Attached patch adds the enabled= method to NSControl so you can disable a widget when created. -- Ticket URL: <http://www.macruby.org/trac/ticket/273> MacRuby <http://macruby.org/>
#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/>
participants (1)
-
MacRuby