1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/statline.mm
3 // Purpose: wxStaticLine
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/statline.h"
18 #include "wx/cocoa/autorelease.h"
20 #import <AppKit/NSBox.h>
22 BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
24 // WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
26 bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
32 wxAutoNSAutoreleasePool pool;
33 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
35 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
36 [m_cocoaNSView release];
37 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
39 m_parent->CocoaAddChild(this);
40 SetInitialFrameRect(pos,size);
45 wxStaticLine::~wxStaticLine()