• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hiding a running application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding a running application


  • Subject: Re: Hiding a running application
  • From: Carl Harris <email@hidden>
  • Date: Fri, 26 Jun 2009 12:41:55 -0400

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


_______________________________________________

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:
This email sent to email@hidden


  • Prev by Date: Tool-tips on NSTabViewItem
  • Next by Date: How to get a fully transparent hit-testable window?
  • Previous by thread: Re: Hiding a running application
  • Next by thread: Unexpected NSWorkspaceDidMountNotification
  • Index(es):
    • Date
    • Thread