Can't get C# OSX app to appear in front of the app that runs it

sams <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
Hi there,

I am writing an OSX C# app that behaves a bit like a plugin. The app it is
written for has a "custom button" function that will start my app and pass
it the filepath of some XML in the run command. 

My problem was initially that my app would run underneath the calling app. I
solved this by adding the following two lines in the DidFinishLaunching
routine that opens the form from AppDelegate (myWindow is an instance of the
window controller:

myWindow.Window.OrderFrontRegardless ();
myWindow.Window.BecomeFirstResponder ();

What this does when the app is called is bring the app's window to the front
but it doesn't have the focus. It's a small issue but I know it's going to
bug me the more I use it! Any advice? The calling app is "Assimilate
Scratch" - this app is in forced full screen mode all the time (this can't
be changed).

Thanks

Sam



--
View this message in context: http://mono.1490590.n4.nabble.com/Can-t-get-C-OSX-app-to-appear-in-front-of-the-app-that-runs-it-tp4666931.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.