[macruby-changes] [398] MacRuby/trunk/lib/hotcocoa/mappings/window.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 2 21:45:53 PDT 2008
Revision: 398
http://trac.macosforge.org/projects/ruby/changeset/398
Author: rich at infoether.com
Date: 2008-08-02 21:45:53 -0700 (Sat, 02 Aug 2008)
Log Message:
-----------
add support for :view => :nolayout
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/window.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/window.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/window.rb 2008-08-03 04:45:37 UTC (rev 397)
+++ MacRuby/trunk/lib/hotcocoa/mappings/window.rb 2008-08-03 04:45:53 UTC (rev 398)
@@ -26,6 +26,9 @@
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)
+ elsif options[:view] == :nolayout
+ options.delete(:default_layout)
+ options.delete(:view)
end
window
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080802/1859cba1/attachment-0001.html
More information about the macruby-changes
mailing list