]> git.saurik.com Git - wxWidgets.git/commitdiff
Implemented Raise()
authorDavid Elliott <dfe@tgwbd.org>
Sun, 13 Apr 2003 05:40:01 +0000 (05:40 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 13 Apr 2003 05:40:01 +0000 (05:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index af1a0278175b74a038dc43ec701e00db32bc8f4d..7e5b33f2dffa79732dd2812e7e1af7d99be1a1f2 100644 (file)
@@ -377,7 +377,11 @@ void wxWindow::Clear()
 // Raise the window to the top of the Z order
 void wxWindow::Raise()
 {
-    // TODO
+    NSView *nsview = m_dummyNSView?m_dummyNSView:m_cocoaNSView;
+    NSView *superview = [nsview superview];
+    [nsview retain];
+    [nsview removeFromSuperview];
+    [superview addSubview:nsview];
 }
 
 // Lower the window to the bottom of the Z order