]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/window.mm
making sure creation is setup correctly for wx-frame coordinates into cocoa-content...
[wxWidgets.git] / src / osx / cocoa / window.mm
index 6488703c092624b327620b5a71fe6c006158fcac..59b06c142f1e83a98706f45f6bea1bc5e92ebb06 100644 (file)
@@ -1395,9 +1395,12 @@ wxWidgetCocoaImpl::ShowViewOrWindowWithEffect(wxWindow *win,
     //
     // notice that because the default animation mode is NSAnimationBlocking,
     // no user input events ought to be processed from here
-    wxEventLoopBase * const loop = wxEventLoopBase::GetActive();
-    while ( ![animDelegate isDone] )
-        loop->Dispatch();
+    {
+        wxEventLoopGuarantor ensureEventLoopExistence;
+        wxEventLoopBase * const loop = wxEventLoopBase::GetActive();
+        while ( ![animDelegate isDone] )
+            loop->Dispatch();
+    }
 
     if ( !show )
     {
@@ -1680,6 +1683,7 @@ void wxWidgetCocoaImpl::SetBitmap( const wxBitmap& bitmap )
     if (  [m_osxView respondsToSelector:@selector(setImage:)] )
     {
         [m_osxView setImage:bitmap.GetNSImage()];
+        [m_osxView setNeedsDisplay:YES];
     }
 }