Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process app.




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 (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >RE: Process app. (From: Толя Макаров <email@hidden>)
 >Re: Process app. (From: Jens Alfke <email@hidden>)
 >Re: Process app. (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Process app. (From: Ken Thomases <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.