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

Jonathan Mitchell <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
> On 11 Nov 2015, at 09:09, sams <[email protected]> wrote:
> 
> 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 ();
Perhaps that should be MakeFirstResponder(sender).
> 
The docs state that OrderFrontRegardless: does not change the key window status, so:
try MakeKeyAndOrderFront(sender)

J
_______________________________________________
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.