From: David Elliott Date: Sun, 13 Apr 2003 05:40:01 +0000 (+0000) Subject: Implemented Raise() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d5ca66298a50071c6c88363b6d84400058499f00 Implemented Raise() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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