Tests 已测试 | ✗ |
Lang 语言 | Swift Swift |
许可证 | MIT |
Released最近发布 | 2016年11月 |
SwiftSwift版本 | 3.0 |
SPM支持SPM | ✗ |
由Adam Hartford维护。
从状态栏显示NSPopover。与Mission Control和Spaces兼容。支持暗黑模式。
CocoaPods
platform :osx, '10.10'
use_frameworks!
pod 'PopStatusItem'
Carthage
github 'adamhartford/PopStatusItem'
let popStatusItem = PopStatusItem(image: NSImage(named: "buttonImage")!)
func applicationDidFinishLaunching(aNotification: NSNotification) {
let storyboard = NSStoryboard(name: "Main", bundle: nil)
popStatusItem.windowController = storyboard.instantiateControllerWithIdentifier("PopStatusItem") as? NSWindowController
}
// Manual actions
popStatusItem.togglePopover()
popStatusItem.showPopover()
popStatusItem.hidePopover()
popStatusItem.highlight = true // Highlights status bar icon. Default is false.
popStatusItem.activate = true // Makes popover window active. Default is false.
使用或重新创建示例应用
PopDatePicker使用MIT许可证发布。有关详细信息,请参阅LICENSE。