loading apps above other windows?
loading apps above other windows?
- Subject: loading apps above other windows?
- From: "Khusro M. Jaleel" <email@hidden>
- Date: Sun, 27 Feb 2005 23:28:17 +0000
Hi,
I'm trying to pass command-line arguments to a cocoa app I've created, so I'm
using, for example:
/Applications/MyApp.app/Contents/MacOS/MyApp --firstarg --secondarg
So the problem WAS that if I did this from the terminal, the app always loaded
up "behind" the terminal and didn't come up on the screen in the normal way I
would expect. Of course if I use "open /Applications/MyApp.app" it loads up
perfectly.
If I called "toFront" in "windowDidFinishLoading" it fixes this problem and
now the window comes up in front of all other windows.
The real problem however is that I am trying to load this app from another
Java App and in the case of the Java app the above "toFront" trick doesn't
work. The app "always" loads up in the background and I don't know how to
bring it to front. Hiding the current Java window won't help as there are
many of them. I can't manipulate the app from within java as all I have is a
simple Process object after using the exec call.
I suppose I should ask in the java-dev lists as well, but some of this has to
do with cocoa so any help would be appreciated.
Thanks,
Khusro
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden