My app does some processing at quit time that can take a few minutes, so I
thought it would be nice to remove the gui from the userĀ¹s attention

I deal with a similar situation by using a helper application, configured as a launch agent. The helper program is configured to be launched automatically (by launchd) when the foreground application connects to its UNIX domain socket. The foreground application passes enough information to the helper program (over the socket) for the helper to do the clean up work. After the work has been passed off to the helper, the foreground app simply exits -- the user doesn't know or care that the helper is running.

There are several other options for configuring and auto-launching the helper app. See

http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/LaunchOnDemandDaemons.html

for more details.

--
Carl Harris
cehar...@vt.edu


_______________________________________________

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 arch...@mail-archive.com

Reply via email to