NSStatus item from background / command line application
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