// Created: 2003/06/19
// RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott
-// Licence: wxWindows licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
-#include "wx/setup.h"
+#include "wx/wxprec.h"
#if wxUSE_SLIDER
-#include "wx/app.h"
-#include "wx/slider.h"
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/slider.h"
+#endif //WX_PRECOMP
-#import <AppKit/NSView.h>
+#import <AppKit/NSSlider.h>
IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
BEGIN_EVENT_TABLE(wxSlider, wxSliderBase)
{
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);