private NSView ViewToBeAdded() { NSBox box = new NSBox(NSRect.NSMakeRect(0.0f, 0.0f, BOXWIDTH, BOXHEIGHT)); box.BoxType = NSBoxType.NSBoxCustom; box.BorderType = NSBorderType.NSLineBorder; box.TitlePosition = NSTitlePosition.NSNoTitle; box.FillColor = this.boxColorField.Color; box.Autorelease(); return box; }