• 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
NSStatus item from background / command line application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSStatus item from background / command line application


  • Subject: NSStatus item from background / command line application
  • From: Alexander Hartner <email@hidden>
  • Date: Tue, 21 Nov 2006 23:34:22 +0000

I am working on a command line application. During the execution I would like to provide some user feedback, similar to what growl offers. I though of using a NSStatusItem as follows:

NSStatusBar * bar = [NSStatusBar systemStatusBar];
NSStatusItem * theItem = [bar statusItemWithLength:NSVariableStatusItemLength];
[theItem retain];
...


When I execute my "Tool" application the NSStatusItem is not show and a error message is printed.

_NXCreateWindow: error setting window property (1002)
PSsetwindowlevel, error setting window level (1002)

I am guessing this is not allows to create a NSStatusItem from a tool. Yet the iSync NSStatusItem seems to be able to do this. Are these kind of menus done using MenuExtras?

Is there a better way to provide user feedback. Ideally I only would like to present a quick pop-up that a background process has started, is busy, has completed or has encountered a problem. I suppose I could integrate with Growl, but this would increase my application size as well as require users to have growl installed. It would be nice if there was a build in solution for this.

Alexander Hartner
email@hidden

Thus spake the master programmer:
``Let the programmers be many and the managers few - then all will be productive.''
- The Tao of Programming





_______________________________________________

Cocoa-dev mailing list      (email@hidden)

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: NSStatus item from background / command line application
      • From: Rosyna <email@hidden>
  • Prev by Date: Questions for implementing pop-up contextual menus for Ctrl-Click and Right-Click
  • Next by Date: afp_mount
  • Previous by thread: Re: Questions for implementing pop-up contextual menus for Ctrl-Click and Right-Click
  • Next by thread: Re: NSStatus item from background / command line application
  • Index(es):
    • Date
    • Thread