Revision: 518 http://trac.macosforge.org/projects/ruby/changeset/518 Author: rich@infoether.com Date: 2008-08-29 13:25:11 -0700 (Fri, 29 Aug 2008) Log Message: ----------- default to show Modified Paths: -------------- MacRuby/trunk/lib/hotcocoa/mappings/alert.rb Modified: MacRuby/trunk/lib/hotcocoa/mappings/alert.rb =================================================================== --- MacRuby/trunk/lib/hotcocoa/mappings/alert.rb 2008-08-29 20:16:54 UTC (rev 517) +++ MacRuby/trunk/lib/hotcocoa/mappings/alert.rb 2008-08-29 20:25:11 UTC (rev 518) @@ -1,10 +1,10 @@ HotCocoa::Mappings.map :alert => :NSAlert do - defaults :default => "OK", :alternate => nil, :other => nil, :info => nil + defaults :default => "OK", :alternate => nil, :other => nil, :info => nil, :show => true def alloc_with_options(options) if options[:message] - NSAlert.alertWithMessageText options.delete(:message), + alert = NSAlert.alertWithMessageText options.delete(:message), defaultButton:options.delete(:default), alternateButton:options.delete(:alternate), otherButton:options.delete(:other), @@ -13,9 +13,11 @@ end custom_methods do + def show runModal end + end end