1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/cocoa/statline2.mm
3 // Purpose: wxStaticLine
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
15 #include "wx/statline.h"
17 #include "wx/cocoa/autorelease.h"
19 #import <AppKit/NSBox.h>
21 BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
23 // WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
25 bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
31 wxAutoNSAutoreleasePool pool;
32 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
34 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
35 [m_cocoaNSView release];
36 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
38 m_parent->CocoaAddChild(this);
39 SetInitialFrameRect(pos,size);
44 wxStaticLine::~wxStaticLine()