[macruby-changes] [470] MacRuby/trunk/lib/hotcocoa/mappings/application.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 21 23:08:06 PDT 2008
Revision: 470
http://trac.macosforge.org/projects/ruby/changeset/470
Author: rich at infoether.com
Date: 2008-08-21 23:08:06 -0700 (Thu, 21 Aug 2008)
Log Message:
-----------
problem in way things were defined
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/application.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/application.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/application.rb 2008-08-22 06:00:58 UTC (rev 469)
+++ MacRuby/trunk/lib/hotcocoa/mappings/application.rb 2008-08-22 06:08:06 UTC (rev 470)
@@ -7,7 +7,9 @@
def handle_block(application, &block)
begin
require 'lib/menu'
- application.menu = application_menu
+ o = Object.new
+ o.extend HotCocoa
+ application.menu = o.application_menu
rescue LoadError => e
end
block.call(application)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080821/8faac3c2/attachment-0001.html
More information about the macruby-changes
mailing list