]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/slider.mm
removed OnIdle() which didn't compile any longer
[wxWidgets.git] / src / cocoa / slider.mm
index 9b0cea9a5c333c2792b14da491d7f2399ff513df..7e319e48446b3da55c54278e32e1579ba1770bba 100644 (file)
@@ -9,8 +9,11 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+#include "wx/setup.h"
+#if wxUSE_SLIDER
+
 #include "wx/app.h"
-#include "wx/statline.h"
+#include "wx/slider.h"
 
 #import <AppKit/NSView.h>
 
@@ -35,7 +38,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid,
 
 wxSlider::~wxSlider()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }
 
+#endif // wxUSE_SLIDER