Modified: MacRuby/trunk/lib/hotcocoa/mappings/view.rb (396 => 397)
--- MacRuby/trunk/lib/hotcocoa/mappings/view.rb 2008-08-03 04:45:08 UTC (rev 396)
+++ MacRuby/trunk/lib/hotcocoa/mappings/view.rb 2008-08-03 04:45:37 UTC (rev 397)
@@ -1,6 +1,9 @@
HotCocoa::Mappings.map :view => :NSView do
+ defaults :frame => DefaultEmptyRect,
+ :layout => {}
+
constant :auto_resize, {
:none => NSViewNotSizable,
:width => NSViewWidthSizable,
@@ -10,13 +13,17 @@
:max_x => NSViewMaxXMargin,
:max_y => NSViewMaxYMargin
}
-
+
constant :border, {
:none => NSNoBorder,
:line => NSLineBorder,
:bezel => NSBezelBorder,
:groove => NSGrooveBorder
}
+
+ def init_with_options(view, options)
+ view.initWithFrame options.delete(:frame)
+ end
custom_methods do