From d5ca66298a50071c6c88363b6d84400058499f00 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sun, 13 Apr 2003 05:40:01 +0000 Subject: [PATCH 1/1] Implemented Raise() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/window.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index af1a027817..7e5b33f2df 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -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 -- 2.45.2