Reputation: 13
Has anyone been able to make menulet osx app with custom view. There is really nice Objective-C example here: https://github.com/djromero/PopoverMenulet but no idea how to convert into Swift
Upvotes: 1
Views: 621
Reputation: 1
In 10.10 NSStatusBar.setView has been deprecated and I guess this is the main reason this can not be implemented in Swift https://developer.apple.com/library/prerelease/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSStatusItem_Class/#//apple_ref/doc/uid/20000248-SW3
see section: Managing a Custom View
Upvotes: 1
Reputation: 8828
You don't need to convert into swift, you should be able to include it into the bridging header and use it as is. See How to call Objective-C code from Swift
Upvotes: 0