diff --git a/src/cocoa/statline2.mm b/src/cocoa/statline2.mm index 75e8da18ae..b23deacc07 100644 --- a/src/cocoa/statline2.mm +++ b/src/cocoa/statline2.mm @@ -12,7 +12,7 @@ #include "wx/app.h" #include "wx/statline.h" -#import +#import IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase) @@ -27,8 +27,9 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); + SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; + [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator]; if(m_parent) m_parent->CocoaAddChild(this); SetInitialFrameRect(pos,size);