X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d656ea93c0f3d53f97a1c67244baa39d72b7334..3c589c7f47a3552ebff0c89cdb88d136ba519321:/src/cocoa/statline2.mm 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);