1

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

2 Answers2

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

0

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

Community
  • 1
  • 1
ccwasden
  • 7,848
  • 5
  • 39
  • 45