X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/449c567346a1b3937e532cd87aac007faad76b04..d94de683a60b20153591cc3f8f52a97cf9ce9453:/src/cocoa/slider.mm?ds=sidebyside diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index 4b6c6f6a7a..9e3e790f42 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -1,26 +1,28 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/slider.mm +// Name: src/cocoa/slider.mm // Purpose: wxSlider // Author: David Elliott // Modified by: // Created: 2003/06/19 // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWindows licence +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + #if wxUSE_SLIDER +#include "wx/slider.h" + #ifndef WX_PRECOMP #include "wx/app.h" - #include "wx/slider.h" #endif //WX_PRECOMP -#import +#import IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl) -BEGIN_EVENT_TABLE(wxSlider, wxSliderBase) + BEGIN_EVENT_TABLE(wxSlider, wxSliderBase) END_EVENT_TABLE() // WX_IMPLEMENT_COCOA_OWNER(wxSlider,NSSlider,NSControl,NSView) @@ -31,7 +33,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);