]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/slider.mm
regenerated makefiles
[wxWidgets.git] / src / cocoa / slider.mm
index 207f9a8c9938d39e9e7174fc91fff4218fa4013a..f2fdeb9a83cb5e15e9261b6e6612f34e38e19379 100644 (file)
@@ -29,17 +29,17 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid,
 {
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
-    SetNSView([[NSView alloc] initWithFrame: NSMakeRect(10,10,20,20)]);
+    SetNSView([[NSView alloc] initWithFrame: MakeDefaultNSRect(size)]);
     [m_cocoaNSView release];
     if(m_parent)
         m_parent->CocoaAddChild(this);
+    SetInitialFrameRect(pos,size);
+
     return true;
 }
 
 wxSlider::~wxSlider()
 {
-    CocoaRemoveFromParent();
-    SetNSView(NULL);
 }
 
 #endif // wxUSE_SLIDER