]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing reentrancy problem under iOS 5
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Oct 2011 11:52:02 +0000 (11:52 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 25 Oct 2011 11:52:02 +0000 (11:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/iphone/nonownedwnd.mm

index 2f10c57c3587c27d4867278421f8cf4235b9f26a..53168f0dafc5e87feae8a4bede9a886d38b0922a 100644 (file)
@@ -55,7 +55,7 @@ wxPoint wxFromNSPoint( UIView* parent, const CGPoint& p )
 
 @end
 
 
 @end
 
-@interface wxUIContentView : wxUIView
+@interface wxUIContentView : UIView
 {
     wxUIContentViewController* _controller;
 }
 {
     wxUIContentViewController* _controller;
 }
@@ -372,6 +372,16 @@ wxWidgetImpl* wxWidgetImpl::CreateContentView( wxNonOwnedWindow* now )
     return _controller;
 }
 
     return _controller;
 }
 
++ (void)initialize
+{
+    static BOOL initialized = NO;
+    if (!initialized)
+    {
+        initialized = YES;
+        wxOSXIPhoneClassAddWXMethods( self );
+    }
+}
 @end
 
 @implementation wxUIContentViewController
 @end
 
 @implementation wxUIContentViewController