]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
Applied remainder of patch #876969: "Fixes to Borland warnings".
[wxWidgets.git] / src / cocoa / radiobox.mm
index db1e609dcaa7025dd045db8a188b151e20ff3c3f..ff0626e5c50b8907e3709fc8d51e38c2c3982b52 100644 (file)
@@ -9,8 +9,11 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
-#include "wx/radiobox.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/radiobox.h"
+#endif //WX_PRECOMP
 
 #import <AppKit/NSView.h>
 
@@ -30,10 +33,12 @@ bool wxRadioBox::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;
 }