The NSStatusItem class represents the individual elements displayed within an NSStatusBar object.
Questions tagged [nsstatusitem]
218 questions
1
vote
1 answer
Set color of NSStatusItem OSX 10.10 Swift
I have seen that some icons in the Menu Bar have colours, but I can't find a way to color the NSStatusItem I'm working on. I use an image (inside Images.xcassets) with color, but it just tints in white or black. I'm using MacOS 10.10 and Swift. I…

aramusss
- 2,391
- 20
- 30
1
vote
1 answer
Delphi tray icon (NSStatusItem) for OSX
I am trying to add NSStatusItem in a Delphi application for OSX. Searched for sample code to help me with that but got stuck when defining an interface:
Here is the code:
// Source: https://forums.embarcadero.com/thread.jspa?threadID=108449
unit…

Jamie
- 657
- 7
- 18
1
vote
1 answer
Objective-C NSPopover statusItem not opening
I'm having difficulty getting my NSPopover to function properly. The statusItem pops up in the status bar, and highlights on click, but the popover isn't displaying.
Here's the structure of my code.
@property (strong, nonatomic) NSStatusItem…

Quinton Chester
- 336
- 4
- 13
1
vote
1 answer
Cocoa - How to bring particular window to come in foreground from StatusMenu
I am working on an Mac Application. I have set Application is agent (UIElement) = YES in plist, and App have a Window (lets say Popup Window) that acts as custom PopOver for StatusMenu. One more window is there (lets say Window B) that should opened…

Mrug
- 4,963
- 2
- 31
- 53
1
vote
1 answer
Set OSX status bar app image colour
I have a frustrating problem. Ive created a StatusBar (MenuBar) app and attached a logo to it. Problem is no matter what colour the image I use for my logo is, it always turns out grey scaled in the statusBar. Drop box has a blue and green icon so I…

Marcus
- 512
- 1
- 7
- 22
1
vote
0 answers
Animate NSStatusItem View on 10.9 Mavericks
I am trying to implement a custom NSView (layer based) with animations in an NSStatusItem's view.
Animating the layer with CABasicAnimation works well with one screen (menu bar), however stops working when I have two screens attached. It then only…

JNK
- 1,753
- 8
- 25
- 37
1
vote
1 answer
How to add an action event to Tooltip in cocoa
Helo Experts,
how to add an action event like button action to tooltip in cocoa,when i click on tooltip i want to perform some action.is it possible in cocoa?.if YES could anybody help how to do this.
I am showing tooltip using NSStatusItem
Thanks…

Dhanunjay Kumar
- 91
- 7
1
vote
2 answers
Animating a NSStatusItem
I have a custom view in an NSStatusItem object.
This view displays icons. It's also able to show a progress, but you have to call [self.statusitemview setProgressValue:theValue];
I have a set of icons, and it chooses the right one using this…

IluTov
- 6,807
- 6
- 41
- 103
1
vote
1 answer
Update statusItem Title
How can I update my statusItem Title?
At the moment I do it with a timer
[NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(myVoid) userInfo:nil repeats:YES];
and the void is:
-(void)myVoid {
statusItem = [[[NSStatusBar…

Viper OS X
- 291
- 1
- 5
- 14
1
vote
1 answer
How to efficiently assign NSStatusItem images and alternte images?
Let's say I have a code like this...
- (id) init {
...
self.myImage1 = [NSImage imageNamed:@"some_image_name"]; // setter retains
...
}
- (void) setStatusItemImage
{
[self.statusItem setImage:self.myImage1];
}
I also want to…

jopes
- 245
- 2
- 13
1
vote
1 answer
NSStatusBar drag & drop with menu
I'm familiar with the technique described here: Drag and Drop with NSStatusItem to make an NSStatusBar item that can handle file drag & drop.
What is the proper method for having a status bar item that supports both drag & drop and regular menu…

cpjolicoeur
- 12,766
- 7
- 48
- 59
1
vote
3 answers
Adding both the title and image to an NSStatusItem
I've been trying to figure out how to add both text and an image to an NSStatusItem. Here is a mockup of what i'm trying to do:
http://cl.ly/GjTO
I've tried using the statusIetm.view and adding a subview, I've tried setting both the title and image…

Frankrockz
- 594
- 1
- 6
- 24
1
vote
1 answer
NSStatusItem with Popover
I'm trying to make a status bar app, but i'm having some problems.
How can i show a popover with a custom view after the status item is clicked?
Example code would be appreciated.

Pedro Vieira
- 3,330
- 3
- 41
- 76
0
votes
1 answer
NSStatusBar title from XML data behaves erratically
I am wanting to "setTitle" of the NSStatusBar with a string from my XMLparser. When the application starts, it shows the title in the status bar correctly. However, when the XML data is refreshed, the title displays the updated string but the…

wigging
- 8,492
- 12
- 75
- 117
0
votes
1 answer
Menu bar to not activate app
I'm trying to work out how my Mac app when running can have it's cute little icon sitting in the dock in the background and then the user can click on the icon in the menu bar and trigger the menu without activating my app into the foreground? Any…