The NSStatusItem class represents the individual elements displayed within an NSStatusBar object.
Questions tagged [nsstatusitem]
218 questions
2
votes
1 answer
Replacing NSStatusBarButton NSView to disable vibrancy
I am currently trying to reduce the default vibrancy that is added to NSStatusBarItems icons in Mac OS. I understand this can be achieved by changing the allowsVibrancy attribute. However, since that is read-only on NSView, I need to extend that…

user1391281
- 215
- 1
- 3
- 10
2
votes
1 answer
How do I draw a rectangle with equal line widths into an NSStatusItemButton?
The following code draws a rectangle with NSBezierPath into an NSImage, which is then set as the image for an NSStatusItemButton.
import Cocoa
class ViewController: NSViewController {
let statusItem: NSStatusItem =…

Johannes Bittner
- 3,503
- 2
- 23
- 21
2
votes
2 answers
How do I get my menulet to look like this
How do i get this effect with a menulet application. I just want the window effect nothing else.
My current app looks like this. please if someone could shed some light it would be appreciated. Thanks.

xMythicx
- 827
- 1
- 11
- 27
2
votes
2 answers
Xcode NSStatusBar Item not appearing
I'm trying to add an item to the status bar, but when I launch the app the item only appears in the top left for a split second and then quickly disappears.
I've looked through the documentation and I can see things have changed recently e.g.…

Jack Vanderpump
- 216
- 2
- 16
2
votes
1 answer
Cocoa - Capturing NSStatusItem mouse hover event
How do I execute a function when a user's mouse hovers over my NSStatusItem?

Chetan
- 46,743
- 31
- 106
- 145
2
votes
2 answers
Displaying NSProgressIndicatorSpinningStyle in NSStatusItem and then hiding it
I'm working on NSStatusItem. I've managed to use the setImage and setAlternateImage to work.
When user selects something, it takes a while for it to accomplish whatever it is doing. While it is doing something, I tried changing from the usual Image…

han
- 531
- 5
- 18
2
votes
1 answer
How to animate closing NSWindow to NSStatusItem?
When you minimize an NSWindow you get a nice animation to the Dock. How to achieve a similar animation for "minimizing" to an NSStatusItem in the menu bar?
I have it set up where the NSStatusItem appears when you close the NSWindow but there is no…

John
- 964
- 8
- 21
2
votes
2 answers
NSMenu and NSStatusItem action wont work together
The button attached to NSStatusItem is not sending calls to its target selector.
I'm not sure what exactly I am doing wrong. I believe its something to do with the button.action line.
let statusItem =…

cheesey
- 516
- 7
- 18
2
votes
1 answer
NSStatusItem is oversized and invisible unless clicked
I am working on an app using NSStatusItem.
I have two problems 1 is the icon is missing on a un-selected state,
However, when you click where the icon should be the app shows up but the area is large. The same size as the menu.
Here is how I am…

user-44651
- 3,924
- 6
- 41
- 87
2
votes
1 answer
Redirect button action to another function in Swift
This might be an easy question, but I am new to Swift and do not know for which terms to google for.
For a menu bar application, I have implemented a custom function called doSomething that works just fine when it is bound to some button:
Class…

klopps
- 85
- 5
2
votes
1 answer
NSStatusItem and NSMenuItem detect shift press
I'm trying to modify my NSMenuItems in my NSStatusItem when the shift button is clicked. Basically I want to modify the text from "MenuItem123" to "Shift MenuItem123"
I tried…

VTS12
- 452
- 8
- 22
2
votes
0 answers
popover view for a status item not responsive to mouse movements
I have been struggling with this and could not find a solution.
I am creating a statusitem app for mac osx using swift. When the item is clicked a popover with a custom view that has a webview in it appears. everything works fine except that after…

Nasim Saleh
- 181
- 1
- 7
2
votes
0 answers
LaunchServices: Failed to create bundleProxy for bundle...?
What does this LaunchServices error message (from Console.app) mean?
2015-12-13 4:57:48.365 PM bird[344]: LaunchServices: Failed to create bundleProxy for bundle com.mowglii.ItsycalApp
Background: I wrote a small calendar app that lives in the menu…

sam
- 3,399
- 4
- 36
- 51
2
votes
1 answer
Swift - NSMenu closes when clicking outside of menu
so i have a simple NSMenu. It is attached to a Status Item Button.
When i click the Button it pops Open.
Now my Problem is that as soon as i click outside of the NSMenu, it closes. How can i avoid that ?
I did try many things but cant get that to…

T1663R
- 35
- 5
2
votes
0 answers
NSStatusBarButton == nil when NSStatusItem was created?
I've read the header files: NSStatusBarButton.h and NSStatusItem.h, which from what I've understanding a NSStatusBarButton will be created when a parent NSStatusItem item is created.
I can confirm it when I tested it in Playground, but the same code…

Cai
- 3,609
- 2
- 19
- 39