• 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: NSStatusItem in Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStatusItem in Carbon


  • Subject: Re: NSStatusItem in Carbon
  • From: Omar Qazi <email@hidden>
  • Date: Tue, 11 Jul 2006 09:26:06 -0700


On Jul 10, 2006, at 10:50 PM, Donald Hall wrote:

I want to use an NSStatusItem so that I can monitor a certain background application from the menu bar. I have to use a Carbon application because NSWorkspace won't tell me when a background program launches or quits.

Not necessarily true. It will not inform you using a delegate, however your application can just monitor the running applications using [[NSWorkspace sharedWorkspace]launchedApplications], which returns an array of running applications. If you want to see some sample code from an application that performs an action when an application is opened or closed, look at AppController.m in this app : http://mikezornek.com/cocoa/megamaneffect/


I am trying to incorporate code from the ObserveProcessLifeCarbon and Cocoa in Carbon sample projects and the article in MacTech from last February on "menulets".

Can anyone point me to some sample code to incorporate NSStatusItem in Carbon? I am not having much success, and searching the archives of this list hasn't been very helpful so far.

I would imagine that when searching for how to make an NSStatusItem in Carbon, a Cocoa mailing list is not the best place to look ;)



Omar Qazi, CEO ROFL Software


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSStatusItem in Carbon (From: Donald Hall <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: nil pointers
  • Previous by thread: NSStatusItem in Carbon
  • Next by thread: Re: NSStatusItem in Carbon
  • Index(es):
    • Date
    • Thread