The NSStatusItem class represents the individual elements displayed within an NSStatusBar object.
Questions tagged [nsstatusitem]
218 questions
0
votes
1 answer
Flickering on NSSearchfield in NSMenu on status menu item
I am developing a menubar application in which i have used serachfield in NSMenuItem on status bar menu . When app launches . if we open first time menu on status bar then Searchfield flickers strangely , after that every time it is ok .

Ashish
- 25
- 8
0
votes
1 answer
NSMenuItem custom view not updating
I have a NSStatusItem object which is created when the app launches (in AppDelegate.m). This object "_statusBarItem" has a Menu attached to it, of class statusBarMenu, which is subclass of NSMenu class but it also has a _panelItem property (of class…

user14492
- 2,116
- 3
- 25
- 44
0
votes
1 answer
Selector for SystemStatusBar::NSStatusItem is unrecognized
I am trying to receive an event when the NSStatusItem is clicked (Action is performed). However, this is what I see in the console (the application does not crash) - unrecognized selector sent to instance
2014-11-14 00:42:29.565 T1[90662:303]…

TJ-
- 14,085
- 12
- 59
- 90
0
votes
1 answer
Why NSStatusBar's text appears and disappears instantly at app start in Yosemite 10.10?
Here is a code how I add a status bar with text:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSStatusBar *bar = [NSStatusBar systemStatusBar];
_statusBarItem = [bar…

Serge
- 2,031
- 3
- 33
- 56
0
votes
2 answers
NSStatusItem title not updating when highlighted
I made a small app which shows the CPU temperature in the status bar/Menu bar. It is working fine except it stops updating completely when it is highlighted(when i click on it). And works again when i click elsewhere(highlight is removed.). Is there…

Morpheus
- 3,285
- 4
- 27
- 57
0
votes
1 answer
How to make an NSMenu recent list
I'm working on a small URL shortening application for someone, and I need to have a list, similar to that of Droplr's, that has all of the recently shortened URLs. The list should be a submenu of the main menu, which is attached to an…

ausgat
- 65
- 2
- 5
0
votes
1 answer
NSStatusItem shows only up if it is defined outside of my method
I'm new to Mac OSX development. I wanna build a global menu item which allows to enter a text and after pressing return, it should jump to a webpage. Nothing special.
What confuse me is the following part of my simple code:
I create my global menu…

Tobonaut
- 2,245
- 2
- 26
- 39
0
votes
0 answers
NSStatusItem image in not changing
As long as the application is running i need to change the status icon once in 2 sec., i think in my case i have to do it in separate thread.
This is my scenario.
I have 2 NSObject initialised in my MainMenu.nib. One of them is main controller…

user12345
- 425
- 1
- 3
- 14
0
votes
1 answer
Why is the NSStatusItem displaying multiple times?
A NSStatusItem has a NSMenu attached, and one of the buttons of the NSMenu opens a NSWindow. Whenever one of these buttons is clicked, the window opens as expected and works properly, but another display of the NSStatusItem is opened.
The…

Eliza Wilson
- 1,031
- 1
- 13
- 38
0
votes
1 answer
Status bar: how to detect touch events?
I've successfully added a NSStatusItem to the menu bar, showing an regular NSMenu.
Is it possible to capture a hover event on this and in that case, display a different menu?

dhrm
- 14,335
- 34
- 117
- 183
0
votes
1 answer
Menu closes during Drag and Drop with NSStatusItem
This question is in response to Drag and Drop with NSStatusItem
The code from @rob Keniger works for me. Following these exact steps, When I run the app, click the menu bar icon, I can drag things to my drag area and everything works. My problem is…

Jim Bak
- 638
- 1
- 8
- 17
0
votes
0 answers
Cocoa - set image and alternateImage for NSView as NSStatusItem in status bar
I wanted to drop files in status bar app icon, so I've found implementation code that allows use NSView as NSStatusItem.
I'm trying to set image directly to view, but nothing happens I still getting empty status bar item. The menu works fine, just…

Evg Min
- 1
- 1
0
votes
1 answer
Passing a Variable through NSStatusItem's Action
I need to add multiple status menuitems programmatically. I have never used NSStatusItem before. The following is what I have.
- (void)showStatus {
for (NSInteger i4 = 0; i4 < alertArray4.count; i4++) {
NSString *person = [[alertArray4…

El Tomato
- 6,479
- 6
- 46
- 75
0
votes
3 answers
NSStatusItem releases icon
I have an ARC project involving a custom view that appears after clicking a status bar icon. I'm new to programming, so I pulled this example project from GitHub to get up and running.
The app runs fine, the only issue is with the status bar item. I…

Max Steenbergen
- 256
- 1
- 10
0
votes
1 answer
How can I redraw an image in an custom NSView for an NSStatusItem?
I am having some troubles understanding how to wire a custom NSView for an NSMenuItem to support both animation and dragging and dropping. I have the following subclass of NSView handling the bulk of the job. It draws my icon when the application…

apblardo
- 1
- 1