On Jun 30, 2008, at 3:44 PM, Ken Thomases wrote:
More techniques:

Technical Note TN2050: Observing Process Lifetimes Without Polling
http://developer.apple.com/technotes/tn/tn2050.html
Getting off-topic maybe but I did this from java.
For example...
CmdJHTML: terminated Firefox /Applications/Firefox.app pid = 3932640
CmdJHTML: launched Firefox /Applications/Firefox.app pid = 3.264063e+08

As you can see it is a bit off on getting the pid.
This was a 'real world' example of creating a Cocoa class from java on the fly...
        public CocoaMonitor() {

                if (initsel == nil) {           // Class setup complete?
                        if (createClassDefinition("CocoaMonitor","NSObject")) {
                                CocoaMonitor_class = getClass(getName());
                        }

I liked it enough I added it to my application as a normal 'automation' type function. I was adding things of that sort in at the time.
I'm not familiar enough with loginwindow that I want to test with  
that though. So it may or may not work there.
А потом будет суп с котом!

Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to