]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/checkbox.mm
Fix typo (sorry, thought I compiled before committing.)
[wxWidgets.git] / src / osx / cocoa / checkbox.mm
index 47962106a394f7cd5754642c1e2397d211bfe3d7..b100875515f3c29d18bf8a73d177244b4823559a 100644 (file)
@@ -25,19 +25,14 @@ wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer,
                                     long style, 
                                     long extraStyle) 
 {
-    NSView* sv = (wxpeer->GetParent()->GetHandle() );
-    
-    NSRect r = wxToNSRect( sv, wxRect( pos, size) );
-    // Rect bounds = wxMacGetBoundsForControl( wxpeer, pos , size ) ;
+    NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
     wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
 
     [v setButtonType:NSSwitchButton];    
     if (style & wxCHK_3STATE)
         [v setAllowsMixedState:YES];
         
-    [sv addSubview:v];
     wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
-    [v setImplementation:c];
     return c;
 }