From 7e41e564c6607df3c1233829edf3799ff7e3a411 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sat, 6 Sep 2003 19:11:26 +0000 Subject: [PATCH] Use an NSSlider instead of an NSView (nothing works yet) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/slider.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index 4b6c6f6a7a..a55468122f 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -17,7 +17,7 @@ #include "wx/slider.h" #endif //WX_PRECOMP -#import +#import IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl) BEGIN_EVENT_TABLE(wxSlider, wxSliderBase) @@ -31,7 +31,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, { if(!CreateControl(parent,winid,pos,size,style,validator,name)) return false; - SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]); + SetNSView([[NSSlider alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) m_parent->CocoaAddChild(this); -- 2.45.2