]> git.saurik.com Git - wxWidgets.git/commitdiff
Use NSBox with the NSBoxSeparator box type
authorDavid Elliott <dfe@tgwbd.org>
Tue, 19 Aug 2003 14:51:08 +0000 (14:51 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 19 Aug 2003 14:51:08 +0000 (14:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/statline2.mm

index 75e8da18aec548084c35938e038bdc4c9d26f5a2..b23deacc077af4c9dd1e35fd84eac020c59d004c 100644 (file)
@@ -12,7 +12,7 @@
 #include "wx/app.h"
 #include "wx/statline.h"
 
-#import <AppKit/NSView.h>
+#import <AppKit/NSBox.h>
 
 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);