Index: lib/hotcocoa/layout_view.rb
===================================================================
--- lib/hotcocoa/layout_view.rb	(revision 1593)
+++ lib/hotcocoa/layout_view.rb	(working copy)
@@ -318,13 +318,21 @@
     relayout!
   end
 
-  if $DEBUG
-    def drawRect(frame)
-      NSColor.redColor.set
+  def drawRect(frame)
+    if @frame_color
+      @frame_color.set
       NSFrameRect(frame)
     end
-  end 
+  end
 
+  def frame_color=(color)
+    @frame_color = color
+  end
+
+  def frame_color
+    @frame_color
+  end
+
   def setFrame(frame)
     super
     relayout!
