]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/webview_webkit.mm
fixing osx_cocoa, there's a reason m_peer is private in the base class
[wxWidgets.git] / src / osx / webview_webkit.mm
index b99504e125b1fec6f94f89d2d89dd1e90d3692dc..8c88764884d803195346e9d8a4ea3686e405884b 100644 (file)
@@ -326,6 +326,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
 {
     m_busy = false;
 
+    DontCreatePeer();
     wxControl::Create(parent, winID, pos, size, style, wxDefaultValidator, name);
 
 #if wxOSX_USE_CARBON
@@ -348,7 +349,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
     m_webView = [[WebView alloc] initWithFrame:r
                                      frameName:@"webkitFrame"
                                      groupName:@"webkitGroup"];
-    m_peer = new wxWidgetCocoaImpl( this, m_webView );
+    SetPeer(new wxWidgetCocoaImpl( this, m_webView ));
 #endif
 
     MacPostControlCreate(pos, size);