• 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
checking status of a background app in a Cocoa program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checking status of a background app in a Cocoa program


  • Subject: checking status of a background app in a Cocoa program
  • From: Donald Hall <email@hidden>
  • Date: Sun, 23 Sep 2007 23:58:53 -0600

I want my main (Cocoa-based) application to track the status of a background application - i.e. to notice when the background application starts and stops. NSWorkspace won't work for background applications. I have a Carbon application that does the monitoring just fine (based on the ObserveProcessLife Carbon example). Can I integrate the functionality of this program into my Cocoa program? Basically, the Carbon app registers launch and terminate functions in main.c that are called at the right times. Can I just link to Carbon as well as Cocoa and do the same thing in my main function, or does the Carbon example rely in the Carbon event loop running (or on some other aspect of Carbon programs.) Or is there another way to do this monitoring without continual polling (ugh)?

Thanks for any pointers,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________

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


  • Follow-Ups:
    • Re: checking status of a background app in a Cocoa program
      • From: Thomas Engelmeier <email@hidden>
  • Prev by Date: Re: Sliders and Timers
  • Next by Date: Sort a NSArrayController using case-insensitive compare, possible ?
  • Previous by thread: Re: Programmatic firewall configuration
  • Next by thread: Re: checking status of a background app in a Cocoa program
  • Index(es):
    • Date
    • Thread