adamhartford / popstatusitem Goto Github PK
View Code? Open in Web Editor NEWStatus bar item with NSPopover
License: MIT License
Status bar item with NSPopover
License: MIT License
Hi, thanks for the highlighting solution:
let delayTime = DispatchTime.now() + Double(0) / Double(NSEC_PER_SEC)
DispatchQueue.main.asyncAfter(deadline: delayTime) { [weak self] in
self?.statusItem.button?.isHighlighted = true
}
But isn't Double(0) / Double(NSEC_PER_SEC)
always 0? I guess you meant something like
DispatchQueue.main.asyncAfter(deadline: .now() + .nanoseconds(1), execute: {
self.statusItem.button?.isHighlighted = true
})
Hello again :)
I put a webview inside the popover, and the webview responds to mouse movements on first show of the popover but after clicking outside the popover which will hide it, and then showing it again, this time the webview is not responsive unless I click inside the pop over. Of course activateigonoreotherapps solves the problem, but it creates like a glitch because it greys out other opened apps. and it is not a nice user experience. e.g. dropbox app on mac activates and responds to mouse movement inside its popover without greying out other opened apps.
I hope you understood what I mean.
Best
There is no problem in one monitor environment.
It occurs frequently in multiple monitor environments.
macOS : 10.12.2(16C67)
XCode : 8.2.1 (8C1002)
Hi !
I'm wondering if I can force my app to popup at launch because it's confusing for user who never use any app from the status bar before.
I'm also wondering if I can apply white appareance for dark mode users.
I'm using your pod for a very small class project and it's very helpfull and reliable so far, thanks ;)
Hello Adam,
Thank you for the nice class, I would like to ask you how can I use it without storyboard. I want to use it in a normal MainMenu.xib, if it is possible how to set the window controller of popstatusItem and connect it to a view.
It will be great if you provide an example of using it without Storyboard.
Thanks alot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.