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: Registering function to call on host app exit?



> Thanks for the idea, but I don't think this will work for me. I might
> be missing something though. The thing is, this plugin will run in
> any number of host applications. The user launches the host app in
> the typical way (double-click in Finder etc), and my plugin can be
> instantiated at any time. In your description above isn't the host
> app itself the "child process"? I can't control how the app is
> started. Essentially when my plugin is instantiated, I need to
> install a function to get called if the process terminates abnormally,
> and then remove it when my plugin is de-instantiated.

You're right. I didn't understand that you were in a plugin.

Hmmmmm.... that makes things a bit more complicated.

Depending on the type of cleanup you want to do, you might be able to
have your plugin create a watcher process that simply waits and watches
for the parent application to die.

This technote would help with that...

<http://developer.apple.com/technotes/tn/tn2050.html>

But that may not be possible if the cleanup you want to do is
in-process.

--
Macintosh Software Engineering Consulting Services
Visit my resume at <http://homepage.mac.com/easco/RSTResume.html>

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Registering function to call on host app exit? (From: Jim Wintermyre <email@hidden>)
 >Re: Registering function to call on host app exit? (From: Scott Thompson <email@hidden>)
 >Re: Registering function to call on host app exit? (From: Jim Wintermyre <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.