[macruby-changes] [1550] MacRuby/trunk/lib/hotcocoa/mappings/window.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 7 13:11:16 PDT 2009
Revision: 1550
http://trac.macosforge.org/projects/ruby/changeset/1550
Author: rich at infoether.com
Date: 2009-05-07 13:11:15 -0700 (Thu, 07 May 2009)
Log Message:
-----------
fixed removal of default layout
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/window.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/window.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/window.rb 2009-05-07 05:18:58 UTC (rev 1549)
+++ MacRuby/trunk/lib/hotcocoa/mappings/window.rb 2009-05-07 20:11:15 UTC (rev 1550)
@@ -46,12 +46,12 @@
styleMask:options.delete(:style),
backing:options.delete(:backing),
defer:options.delete(:defer)
+ default_layout = options.delete(:default_layout)
if options[:view] == :layout
options.delete(:view)
window.setContentView(LayoutView.alloc.initWithFrame([0,0,window.contentView.frameSize.width, window.contentView.frameSize.height]))
- window.contentView.default_layout = options.delete(:default_layout)
+ window.contentView.default_layout = default_layout
elsif options[:view] == :nolayout
- options.delete(:default_layout)
options.delete(:view)
end
window
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090507/8d02b285/attachment.html>
More information about the macruby-changes
mailing list