For my old projects, I used the CarbonLib function “SelectWindow()” to bring the current window to the top of the display. I’m working to de-carbonize a number of projects and I haven’t been able to locate a Cocoa replacement for this.
Also,is the a cross-platform way to do this that anyone has put together?
I am using MBS plugins for a while now, but was not aware of this one. Nice.
But, be careful using it: for example when you use it for a splash-login-screen, and want to present a messagbox to tell the user that is password was incorrect, you have to take care of this otherwise the messagebox will be behind your window.
[quote=230732:@Joost Rongen]I am using MBS plugins for a while now, but was not aware of this one. Nice.
But, be careful using it: for example when you use it for a splash-login-screen, and want to present a messagbox to tell the user that is password was incorrect, you have to take care of this otherwise the messagebox will be behind your window.[/quote]
i probably add an additional label in red to show the error message rather than showing a message box in the splash-login-screen. this label is only shown when you have a error.