]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/slider.mm
More lib and demo patches to drop the wx prefix (Jeff has been busy!)
[wxWidgets.git] / src / cocoa / slider.mm
index f2fdeb9a83cb5e15e9261b6e6612f34e38e19379..a55468122ffc346c719b8e12e3641a41a7b1cbe2 100644 (file)
@@ -9,13 +9,15 @@
 // Licence:    wxWindows 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)
@@ -29,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);