Hi,
do you build aquavcl01? Do you still remember that you have to run
some script modifying the final bundle and similar stuff? I hope that
I found a better way to do this to keep more in sync with X11!
Last week, I sent mail about the function TransformProcessType and
called for testing. As none announced to work on it, I tried it now
myself.
What I did:
- compiled goodies/source/inv test application
- created a bundle from it
- run it
It worked, because the application was named properly inside the bundle.
Then I added this code to goodies/source/inv/i*r.cxx:
#include <premac.h>
#include <Carbon/Carbon.h>
#include <postmac.h>
...
ProcessSerialNumber psn;
GetCurrentProcess(&psn);
TransformProcessType(&psn,
kProcessTransformToForegroundApplication);
Compiled this application (-framework Carbon is needed in addition to
the link command link) and put it into the bundle under different
name and run it.
It worked as well.
I commented the call to TPT again and did the same and it run, but
was in the foreground only -> looks like it works (at least in some
details). More to be investigated.
I believe this can help us to get rid of the stuff we do in the post-
install manually run script.
I'd be happy too see independent verification of this - any volunteer?
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]